rootfs_ipk.bbclass: Add new option, PACKAGE_INSTALL_NO_DEPS. If set to 1,
authorPaul Sokolovsky <pmiscml@gmail.com>
Sun, 10 Jun 2007 22:32:49 +0000 (22:32 +0000)
committerPaul Sokolovsky <pmiscml@gmail.com>
Sun, 10 Jun 2007 22:32:49 +0000 (22:32 +0000)
list of packages in PACKAGE_INSTALL installed as is, without any dependencies.
* Useful for initrds, etc.
* Closes #2469.

classes/rootfs_ipk.bbclass

index 26eca34..210563a 100644 (file)
@@ -7,10 +7,11 @@
 
 do_rootfs[depends] += "ipkg-native:do_populate_staging ipkg-utils-native:do_populate_staging"
 
-IPKG_ARGS = "-f ${T}/ipkg.conf -o ${IMAGE_ROOTFS}"
+IPKG_ARGS = "-f ${T}/ipkg.conf -o ${IMAGE_ROOTFS} ${@base_conditional("PACKAGE_INSTALL_NO_DEPS", "1", "-nodeps", "", d)}"
 
 RDEPENDS += "ipkg ipkg-collateral"
 PACKAGE_INSTALL += "ipkg ipkg-collateral"
+PACKAGE_INSTALL_NO_DEPS ?= "0"
 
 rootfs_ipk_do_indexes () {
        set -x