]> code.ossystems Code Review - openembedded-core.git/commitdiff
distro_features_check: expand with IMAGE_FEATURES
authorTrevor Woerner <twoerner@gmail.com>
Tue, 31 Aug 2021 02:50:33 +0000 (22:50 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 Sep 2021 13:05:41 +0000 (14:05 +0100)
In addition to checking DISTRO_, MACHINE_, and COMBINED_ FEATURES for required
or conflicting features, extend this functionality in order to check
IMAGE_FEATURES in the same way.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/features_check.bbclass

index b3c8047861f228116e8a7b13f9ddb1318a8bbe3d..205e1b9cd3164d97c29dc8a53c85249dda1edaa1 100644 (file)
@@ -1,6 +1,6 @@
 # Allow checking of required and conflicting features
 #
-# xxx = [DISTRO,MACHINE,COMBINED]
+# xxx = [DISTRO,MACHINE,COMBINED,IMAGE]
 #
 # ANY_OF_xxx_FEATURES:        ensure at least one item on this list is included
 #                             in xxx_FEATURES.
@@ -18,7 +18,7 @@ python () {
 
     unused = True
 
-    for kind in ['DISTRO', 'MACHINE', 'COMBINED']:
+    for kind in ['DISTRO', 'MACHINE', 'COMBINED', 'IMAGE']:
         if d.getVar('ANY_OF_' + kind + '_FEATURES') is None and \
            d.overridedata.get('ANY_OF_' + kind + '_FEATURES') is None and \
            d.getVar('REQUIRED_' + kind + '_FEATURES') is None and \