mirror of
https://git.yoctoproject.org/poky
synced 2026-09-16 09:49:35 +02:00
image.bbclass/populate_sdk_base.bbclass: shift position of sdk complementary install definition
The sdk complementary install operation was defined in image.bbclass, but the sdk recipe (such as meta-toolchain.bb) didn't inherit this bbclass but populate_sdk, and both of image and populate_sdk bbclass inherited populate_sdk_base bbclass, so move the sdk complementary install definition to populate_sdk_base bbclass fixed this issue. (From OE-Core rev: 907458935bab391f5bfba8f581ea9835078548d9) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
ee175b5161
commit
4d8982a1c6
@@ -35,26 +35,7 @@ FEATURE_INSTALL_OPTIONAL = "${@' '.join(oe.packagegroup.optional_packages(oe.dat
|
|||||||
SPLASH ?= "psplash"
|
SPLASH ?= "psplash"
|
||||||
PACKAGE_GROUP_splash = "${SPLASH}"
|
PACKAGE_GROUP_splash = "${SPLASH}"
|
||||||
|
|
||||||
# Wildcards specifying complementary packages to install for every package that has been explicitly
|
|
||||||
# installed into the rootfs
|
|
||||||
COMPLEMENTARY_GLOB[dev-pkgs] = '*-dev'
|
|
||||||
COMPLEMENTARY_GLOB[staticdev-pkgs] = '*-staticdev'
|
|
||||||
COMPLEMENTARY_GLOB[doc-pkgs] = '*-doc'
|
|
||||||
COMPLEMENTARY_GLOB[dbg-pkgs] = '*-dbg'
|
|
||||||
COMPLEMENTARY_GLOB[ptest-pkgs] = '*-ptest'
|
|
||||||
|
|
||||||
def complementary_globs(featurevar, d):
|
|
||||||
all_globs = d.getVarFlags('COMPLEMENTARY_GLOB')
|
|
||||||
globs = []
|
|
||||||
features = set((d.getVar(featurevar, True) or '').split())
|
|
||||||
for name, glob in all_globs.items():
|
|
||||||
if name in features:
|
|
||||||
globs.append(glob)
|
|
||||||
return ' '.join(globs)
|
|
||||||
|
|
||||||
IMAGE_INSTALL_COMPLEMENTARY = '${@complementary_globs("IMAGE_FEATURES", d)}'
|
IMAGE_INSTALL_COMPLEMENTARY = '${@complementary_globs("IMAGE_FEATURES", d)}'
|
||||||
SDKIMAGE_FEATURES ??= "dev-pkgs dbg-pkgs"
|
|
||||||
SDKIMAGE_INSTALL_COMPLEMENTARY = '${@complementary_globs("SDKIMAGE_FEATURES", d)}'
|
|
||||||
|
|
||||||
def check_image_features(d):
|
def check_image_features(d):
|
||||||
valid_features = (d.getVarFlag('IMAGE_FEATURES', 'validitems', True) or "").split()
|
valid_features = (d.getVarFlag('IMAGE_FEATURES', 'validitems', True) or "").split()
|
||||||
|
|||||||
@@ -1,4 +1,25 @@
|
|||||||
inherit meta toolchain-scripts
|
inherit meta toolchain-scripts
|
||||||
|
|
||||||
|
# Wildcards specifying complementary packages to install for every package that has been explicitly
|
||||||
|
# installed into the rootfs
|
||||||
|
COMPLEMENTARY_GLOB[dev-pkgs] = '*-dev'
|
||||||
|
COMPLEMENTARY_GLOB[staticdev-pkgs] = '*-staticdev'
|
||||||
|
COMPLEMENTARY_GLOB[doc-pkgs] = '*-doc'
|
||||||
|
COMPLEMENTARY_GLOB[dbg-pkgs] = '*-dbg'
|
||||||
|
COMPLEMENTARY_GLOB[ptest-pkgs] = '*-ptest'
|
||||||
|
|
||||||
|
def complementary_globs(featurevar, d):
|
||||||
|
all_globs = d.getVarFlags('COMPLEMENTARY_GLOB')
|
||||||
|
globs = []
|
||||||
|
features = set((d.getVar(featurevar, True) or '').split())
|
||||||
|
for name, glob in all_globs.items():
|
||||||
|
if name in features:
|
||||||
|
globs.append(glob)
|
||||||
|
return ' '.join(globs)
|
||||||
|
|
||||||
|
SDKIMAGE_FEATURES ??= "dev-pkgs dbg-pkgs"
|
||||||
|
SDKIMAGE_INSTALL_COMPLEMENTARY = '${@complementary_globs("SDKIMAGE_FEATURES", d)}'
|
||||||
|
|
||||||
inherit populate_sdk_${IMAGE_PKGTYPE}
|
inherit populate_sdk_${IMAGE_PKGTYPE}
|
||||||
|
|
||||||
SDK_DIR = "${WORKDIR}/sdk"
|
SDK_DIR = "${WORKDIR}/sdk"
|
||||||
|
|||||||
Reference in New Issue
Block a user