diff options
-rw-r--r-- | meta/classes/image.bbclass | 17 |
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} | |||
6 | LICENSE = "MIT" | 6 | LICENSE = "MIT" |
7 | PACKAGES = "" | 7 | PACKAGES = "" |
8 | MULTILIB_IMAGE_INSTALL ?= "" | 8 | MULTILIB_IMAGE_INSTALL ?= "" |
9 | RDEPENDS += "${IMAGE_INSTALL} ${LINGUAS_INSTALL} ${MULTILIB_IMAGE_INSTALL}" | 9 | RDEPENDS += "${IMAGE_INSTALL} ${LINGUAS_INSTALL} ${MULTILIB_IMAGE_INSTALL} ${FEATURE_INSTALL}" |
10 | RRECOMMENDS += "${FEATURE_INSTALL_OPTIONAL}" | ||
10 | 11 | ||
11 | INHIBIT_DEFAULT_DEPS = "1" | 12 | INHIBIT_DEFAULT_DEPS = "1" |
12 | 13 | ||
14 | # IMAGE_FEATURES may contain any available package group | ||
15 | IMAGE_FEATURES ?= "" | ||
16 | IMAGE_FEATURES[type] = "list" | ||
17 | |||
18 | # packages to install from features | ||
19 | FEATURE_INSTALL = "${@' '.join(oe.packagegroup.required_packages(oe.data.typed_value('IMAGE_FEATURES', d), d))}" | ||
20 | FEATURE_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 |
23 | IMAGE_INSTALL ?= "" | ||
24 | IMAGE_INSTALL[type] = "list" | ||
14 | IMAGE_BASENAME[export] = "1" | 25 | IMAGE_BASENAME[export] = "1" |
15 | export PACKAGE_INSTALL ?= "${IMAGE_INSTALL}" | 26 | export PACKAGE_INSTALL ?= "${IMAGE_INSTALL} ${FEATURE_INSTALL}" |
16 | export MULTILIB_PACKAGE_INSTALL ?= "${MULTILIB_IMAGE_INSTALL}" | 27 | export MULTILIB_PACKAGE_INSTALL ?= "${MULTILIB_IMAGE_INSTALL}" |
17 | PACKAGE_INSTALL_ATTEMPTONLY ?= "" | 28 | PACKAGE_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. |
20 | EXCLUDE_FROM_WORLD = "1" | 31 | EXCLUDE_FROM_WORLD = "1" |