From 77734527095b04989c7773f6bc5a941faae532eb Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Fri, 8 Oct 2010 20:07:23 -0700 Subject: 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 --- classes/image.bbclass | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'classes') 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" -- cgit 1.2.3-korg