aboutsummaryrefslogtreecommitdiffstats
path: root/classes/image.bbclass
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-10-08 20:07:23 -0700
committerChris Larson <chris_larson@mentor.com>2010-10-09 22:38:02 -0700
commit77734527095b04989c7773f6bc5a941faae532eb (patch)
treeedc372a15fb9bb2c0508a17ada25ee12b061a433 /classes/image.bbclass
parentb680c0dd6ba53257f742e7250cc4e1c3fed32bc2 (diff)
downloadopenembedded-77734527095b04989c7773f6bc5a941faae532eb.tar.gz
image.bbclass: implement IMAGE_FEATURES
IMAGE_FEATURES, as with the other _FEATURES variables, is a space separated list of words which identify pieces of functionality to be included / supported. Currently, any defined package group may be included (see the oe.packagegroup python module). Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'classes/image.bbclass')
-rw-r--r--classes/image.bbclass10
1 files changed, 9 insertions, 1 deletions
diff --git a/classes/image.bbclass b/classes/image.bbclass
index 4e361c7f7b..60f2d89b69 100644
--- a/classes/image.bbclass
+++ b/classes/image.bbclass
@@ -37,11 +37,19 @@ LINGUAS_INSTALL_linux = "glibc-localedata-i18n"
LINGUAS_INSTALL_linux += "${@' '.join(map(lambda s: 'locale-base-%s' % s, '${IMAGE_LINGUAS}'.split()))}"
LINGUAS_INSTALL_linux-gnueabi = "${LINGUAS_INSTALL_linux}"
+PACKAGE_INSTALL = "${@oe.packagegroup.required_packages('${IMAGE_FEATURES}'.split(), d)}"
+PACKAGE_INSTALL_ATTEMPTONLY = "${@oe.packagegroup.optional_packages('${IMAGE_FEATURES}'.split(), d)}"
+
+IMAGE_FEATURES ?= ""
+IMAGE_FEATURES_prepend = "image_base "
+
+# Define our always included package group
+PACKAGE_GROUP_image_base = "${IMAGE_INSTALL} ${IMAGE_BOOT} ${LINGUAS_INSTALL}"
+
RDEPENDS += "${PACKAGE_INSTALL}"
# "export IMAGE_BASENAME" not supported at this time
IMAGE_BASENAME[export] = "1"
-PACKAGE_INSTALL ?= "${IMAGE_INSTALL} ${IMAGE_BOOT} ${LINGUAS_INSTALL}"
# We need to recursively follow RDEPENDS and RRECOMMENDS for images
do_rootfs[recrdeptask] += "do_deploy do_populate_sysroot"