]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
insane: Update to allow for class layout changes
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 11 Aug 2022 14:17:07 +0000 (15:17 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 12 Aug 2022 14:26:28 +0000 (15:26 +0100)
Make the code more generic to allow for the potential incomming class
layout changes.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/insane.bbclass

index 176a42fd0d830130e57440a31b0af5a19ea19f82..46ea41e2711509e8fde13b265ff19b083118a9e7 100644 (file)
@@ -1425,7 +1425,7 @@ python () {
             if bb.data.inherits_class(native_class, d):
 
                 inherited_classes = d.getVar('__inherit_cache', False) or []
-                needle = os.path.join('classes', native_class)
+                needle = "/" + native_class
 
                 bbclassextend = (d.getVar('BBCLASSEXTEND') or '').split()
                 # BBCLASSEXTEND items are always added in the end
@@ -1438,7 +1438,7 @@ python () {
                 for class_item in reversed(inherited_classes):
                     if needle not in class_item:
                         for extend_item in skip_classes:
-                            if os.path.join('classes', '%s.bbclass' % extend_item) in class_item:
+                            if '/%s.bbclass' % extend_item in class_item:
                                 break
                         else:
                             pn = d.getVar('PN')