Differences

This shows you the differences between two versions of the page.

doc:devel:dependencies [2013/01/05 02:39]
the2masters
doc:devel:dependencies [2013/01/05 03:03] (current)
the2masters
Line 41: Line 41:
Useful is the negation ! to only select a Package if it's not build into busybox Useful is the negation ! to only select a Package if it's not build into busybox
<code> <code>
-DEPENDS:=+!BUSYBOX_CONFIG_UNAME:coreutils-uname+DEPENDS:=+!BUSYBOX_CONFIG_HOSTNAME:net-tools-hostname
</code> </code>
-This means select coreutils-uname only if uname is not build into busybox. But don't try it the other way around, see the last case.+This means select net-tools-hostname only if hostname is not build into busybox. But don't try it the other way around, see the last case.
  * If you say ''@SYMBOL'' that means that CONFIG_SYMBOL must be defined by OpenWRT in order for the ''package'' to be available for selection. e.g   * If you say ''@SYMBOL'' that means that CONFIG_SYMBOL must be defined by OpenWRT in order for the ''package'' to be available for selection. e.g
Line 59: Line 59:
  * Don't be so clever and combine everything:   * Don't be so clever and combine everything:
<code> <code>
-DEPENDS:=+@!PACKAGE_coreutils-uname:BUSYBOX_CONFIG_UNAME+DEPENDS:=+@!PACKAGE_net-tools-hostname:BUSYBOX_CONFIG_HOSTNAME
</code> </code>
-Here we select the Symbol BUSYBOX_CONFIG_UNAME if the package corutils-uname is not selected. The @ belongs to BUSYBOX_CONFIG_UNAME. This works while compiling your own image, but the resulting ipkg depends on the unresolvable BUSYBOX_CONFIG_UNAME, so your package cannot be installed later on a box with opkg.+Here we select the Symbol BUSYBOX_CONFIG_HOSTNAME if the package net-tools-hostname is not selected. The @ belongs to BUSYBOX_CONFIG_HOSTNAME. This works while compiling your own image, but the resulting ipkg depends on the unresolvable BUSYBOX_CONFIG_HOSTNAME, so your package cannot be installed later on a box with opkg.
As busybox can never be extended on a working box, always select an installable package when a busybox applet is not selected. As busybox can never be extended on a working box, always select an installable package when a busybox applet is not selected.
<code> <code>
-DEPENDS:=+!BUSYBOX_CONFIG_UNAME:coreutils-uname+DEPENDS:=+!BUSYBOX_CONFIG_HOSTNAME:net-tools-hostname
</code> </code>

Back to top

doc/devel/dependencies.txt · Last modified: 2013/01/05 03:03 by the2masters