summaryrefslogtreecommitdiffstats
path: root/meta/classes/image.bbclass
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-08-08 16:09:37 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-10 13:33:07 +0100
commit073caff59944eae399ad0be1203cf0a7b11d93d0 (patch)
tree54c648c6842a500a7be4ee3d70bbecb692921ba0 /meta/classes/image.bbclass
parentb0761479e46a99b3b96e20fd142881e2a0a63136 (diff)
downloadpoky-073caff59944eae399ad0be1203cf0a7b11d93d0.tar.gz
image: implement IMAGE_FEATURES
IMAGE_FEATURES is analagous to DISTRO_FEATURES and MACHINE_FEATURES, for root filesystem construction. Currently, the only supported features are any defined package groups, as used by the oe.packagegroup python module. Example usage: PACKAGE_GROUP_myfeature = "vim iptables" IMAGE_FEATURES += "myfeature" (From OE-Core rev: f9f4416a8cfbd37c7d3a8eb19ee82820e2e6b38c) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r--meta/classes/image.bbclass17
1 files changed, 14 insertions, 3 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 243baa9c35..e057329017 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -6,15 +6,26 @@ inherit imagetest-${IMAGETEST}
6LICENSE = "MIT" 6LICENSE = "MIT"
7PACKAGES = "" 7PACKAGES = ""
8MULTILIB_IMAGE_INSTALL ?= "" 8MULTILIB_IMAGE_INSTALL ?= ""
9RDEPENDS += "${IMAGE_INSTALL} ${LINGUAS_INSTALL} ${MULTILIB_IMAGE_INSTALL}" 9RDEPENDS += "${IMAGE_INSTALL} ${LINGUAS_INSTALL} ${MULTILIB_IMAGE_INSTALL} ${FEATURE_INSTALL}"
10RRECOMMENDS += "${FEATURE_INSTALL_OPTIONAL}"
10 11
11INHIBIT_DEFAULT_DEPS = "1" 12INHIBIT_DEFAULT_DEPS = "1"
12 13
14# IMAGE_FEATURES may contain any available package group
15IMAGE_FEATURES ?= ""
16IMAGE_FEATURES[type] = "list"
17
18# packages to install from features
19FEATURE_INSTALL = "${@' '.join(oe.packagegroup.required_packages(oe.data.typed_value('IMAGE_FEATURES', d), d))}"
20FEATURE_INSTALL_OPTIONAL = "${@' '.join(oe.packagegroup.optional_packages(oe.data.typed_value('IMAGE_FEATURES', d), d))}"
21
13# "export IMAGE_BASENAME" not supported at this time 22# "export IMAGE_BASENAME" not supported at this time
23IMAGE_INSTALL ?= ""
24IMAGE_INSTALL[type] = "list"
14IMAGE_BASENAME[export] = "1" 25IMAGE_BASENAME[export] = "1"
15export PACKAGE_INSTALL ?= "${IMAGE_INSTALL}" 26export PACKAGE_INSTALL ?= "${IMAGE_INSTALL} ${FEATURE_INSTALL}"
16export MULTILIB_PACKAGE_INSTALL ?= "${MULTILIB_IMAGE_INSTALL}" 27export MULTILIB_PACKAGE_INSTALL ?= "${MULTILIB_IMAGE_INSTALL}"
17PACKAGE_INSTALL_ATTEMPTONLY ?= "" 28PACKAGE_INSTALL_ATTEMPTONLY ?= "${FEATURE_INSTALL_OPTIONAL}"
18 29
19# Images are generally built explicitly, do not need to be part of world. 30# Images are generally built explicitly, do not need to be part of world.
20EXCLUDE_FROM_WORLD = "1" 31EXCLUDE_FROM_WORLD = "1"