diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2012-03-03 04:12:18 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-13 11:44:45 +0000 |
commit | 4f2845739fc7a1f2c784f4d3be048ee111e7d093 (patch) | |
tree | 907e79a6b5b50248ac3ef0f51072f752eed4b60c /meta/classes/image.bbclass | |
parent | 791f7e16d003eb1e116a26eec716e6bbac28b8f9 (diff) | |
download | openembedded-core-4f2845739fc7a1f2c784f4d3be048ee111e7d093.tar.gz openembedded-core-4f2845739fc7a1f2c784f4d3be048ee111e7d093.tar.bz2 openembedded-core-4f2845739fc7a1f2c784f4d3be048ee111e7d093.tar.xz openembedded-core-4f2845739fc7a1f2c784f4d3be048ee111e7d093.zip |
image.bbclass: fix rootfs generation without package management tools
When building without package management tools the
ROOTFS_BOOTSTRAP_INSTALL packages need to be available to provide the
bare minimal for rootfs unconfigure postinsts to be on first boot.
Those packages where being include in core-image.bbclass' based images
however every image needs those available for proper rootfs generation.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r-- | meta/classes/image.bbclass | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index a62eb2cd5..533f53cca 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -5,7 +5,7 @@ inherit imagetest-${IMAGETEST} LICENSE = "MIT" PACKAGES = "" -RDEPENDS += "${IMAGE_INSTALL} ${LINGUAS_INSTALL} ${NORMAL_FEATURE_INSTALL}" +RDEPENDS += "${IMAGE_INSTALL} ${LINGUAS_INSTALL} ${NORMAL_FEATURE_INSTALL} ${ROOTFS_BOOTSTRAP_INSTALL}" RRECOMMENDS += "${NORMAL_FEATURE_INSTALL_OPTIONAL}" INHIBIT_DEFAULT_DEPS = "1" @@ -14,6 +14,9 @@ INHIBIT_DEFAULT_DEPS = "1" IMAGE_FEATURES ?= "" IMAGE_FEATURES[type] = "list" +# rootfs bootstrap install +ROOTFS_BOOTSTRAP_INSTALL = "${@base_contains("IMAGE_FEATURES", "package-management", "", "${ROOTFS_PKGMANAGE_BOOTSTRAP}",d)}" + # packages to install from features FEATURE_INSTALL = "${@' '.join(oe.packagegroup.required_packages(oe.data.typed_value('IMAGE_FEATURES', d), d))}" FEATURE_INSTALL_OPTIONAL = "${@' '.join(oe.packagegroup.optional_packages(oe.data.typed_value('IMAGE_FEATURES', d), d))}" @@ -52,7 +55,7 @@ PACKAGE_GROUP_doc-pkgs[optional] = "1" IMAGE_INSTALL ?= "" IMAGE_INSTALL[type] = "list" IMAGE_BASENAME[export] = "1" -export PACKAGE_INSTALL ?= "${IMAGE_INSTALL} ${FEATURE_INSTALL}" +export PACKAGE_INSTALL ?= "${IMAGE_INSTALL} ${ROOTFS_BOOTSTRAP_INSTALL} ${FEATURE_INSTALL}" PACKAGE_INSTALL_ATTEMPTONLY ?= "${FEATURE_INSTALL_OPTIONAL}" # Images are generally built explicitly, do not need to be part of world. |