mirror of
https://git.yoctoproject.org/poky
synced 2026-09-12 06:49:32 +02:00
Rename PACKAGE_GROUP variable to FEATURE_PACKAGES
Since tasks were renamed to packagegroups some time ago, this variable name implies that its usage is necessarily related to them which is not the case. Rename the variable to more closely represent what it does (whilst still providing backwards-compatibility with a warning for PACKAGE_GROUP). (From OE-Core rev: d703e07ea5056624101e1bc48f10d25b602635e9) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
874ab5a568
commit
d14090ab73
@@ -32,9 +32,9 @@ FEATURE_INSTALL = "${@' '.join(oe.packagegroup.required_packages(oe.data.typed_v
|
||||
FEATURE_INSTALL_OPTIONAL = "${@' '.join(oe.packagegroup.optional_packages(oe.data.typed_value('IMAGE_FEATURES', d), d))}"
|
||||
|
||||
# Define some very basic feature package groups
|
||||
PACKAGE_GROUP_package-management = "${ROOTFS_PKGMANAGE}"
|
||||
FEATURE_PACKAGES_package-management = "${ROOTFS_PKGMANAGE}"
|
||||
SPLASH ?= "psplash"
|
||||
PACKAGE_GROUP_splash = "${SPLASH}"
|
||||
FEATURE_PACKAGES_splash = "${SPLASH}"
|
||||
|
||||
IMAGE_INSTALL_COMPLEMENTARY = '${@complementary_globs("IMAGE_FEATURES", d)}'
|
||||
|
||||
@@ -43,7 +43,10 @@ def check_image_features(d):
|
||||
valid_features += d.getVarFlags('COMPLEMENTARY_GLOB').keys()
|
||||
for var in d:
|
||||
if var.startswith("PACKAGE_GROUP_"):
|
||||
bb.warn("PACKAGE_GROUP is deprecated, please use FEATURE_PACKAGES instead")
|
||||
valid_features.append(var[14:])
|
||||
elif var.startswith("FEATURE_PACKAGES_"):
|
||||
valid_features.append(var[17:])
|
||||
valid_features.sort()
|
||||
|
||||
features = set(oe.data.typed_value('IMAGE_FEATURES', d))
|
||||
|
||||
Reference in New Issue
Block a user