[oe-commits] Chris Larson : image.bbclass: implement IMAGE_FEATURES

git version control git at git.openembedded.org
Sun Oct 10 05:40:13 UTC 2010


Module: openembedded.git
Branch: master
Commit: 77734527095b04989c7773f6bc5a941faae532eb
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=77734527095b04989c7773f6bc5a941faae532eb

Author: Chris Larson <chris_larson at mentor.com>
Date:   Fri Oct  8 20:07:23 2010 -0700

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 at mentor.com>

---

 classes/image.bbclass |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/classes/image.bbclass b/classes/image.bbclass
index 4e361c7..60f2d89 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"





More information about the Openembedded-commits mailing list