Add a list_image_features task that lists the available IMAGE_FEATURES for a specific image.
Signed-off-by: Ross Burton <[email protected]> --- meta/classes-recipe/image.bbclass | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/meta/classes-recipe/image.bbclass b/meta/classes-recipe/image.bbclass index ccad308b939..53f1a9dc45b 100644 --- a/meta/classes-recipe/image.bbclass +++ b/meta/classes-recipe/image.bbclass @@ -702,4 +702,27 @@ reproducible_final_image_task () { IMAGE_PREPROCESS_COMMAND:append = " reproducible_final_image_task " +python do_list_image_features() { + """ + Task to list the available values for IMAGE_FEATURES for a specific image. + """ + features = set() + + for var in d: + if var.startswith("FEATURE_PACKAGES_"): + features.add(var.replace("FEATURE_PACKAGES_", "")) + + for flag in d.getVarFlags("COMPLEMENTARY_GLOB"): + if flag != "doc": + features.add(flag) + + for feat in d.getVarFlag("IMAGE_FEATURES", "validitems").split(): + features.add(feat) + + bb.plain("Available features for IMAGE_FEATURES:") + for feature in sorted(features): + bb.plain(" - " + feature) +} +addtask list_image_features + CVE_PRODUCT = "" -- 2.43.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#226296): https://lists.openembedded.org/g/openembedded-core/message/226296 Mute This Topic: https://lists.openembedded.org/mt/116290970/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
