summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/insane.bbclass8
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index e371c1c71f..53230fc667 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -1381,6 +1381,7 @@ python () {
1381 # native also inherits nopackages and relocatable bbclasses 1381 # native also inherits nopackages and relocatable bbclasses
1382 skip_classes.extend(['nopackages', 'relocatable']) 1382 skip_classes.extend(['nopackages', 'relocatable'])
1383 1383
1384 broken_order = []
1384 for class_item in reversed(inherited_classes): 1385 for class_item in reversed(inherited_classes):
1385 if needle not in class_item: 1386 if needle not in class_item:
1386 for extend_item in skip_classes: 1387 for extend_item in skip_classes:
@@ -1388,10 +1389,13 @@ python () {
1388 break 1389 break
1389 else: 1390 else:
1390 pn = d.getVar('PN') 1391 pn = d.getVar('PN')
1391 package_qa_handle_error("native-last", "%s: native/nativesdk class is not inherited last, this can result in unexpected behaviour. " % pn, d) 1392 broken_order.append(os.path.basename(class_item))
1392 break
1393 else: 1393 else:
1394 break 1394 break
1395 if broken_order:
1396 package_qa_handle_error("native-last", "%s: native/nativesdk class is not inherited last, this can result in unexpected behaviour. "
1397 "Classes inherited after native/nativesdk: %s" % (pn, " ".join(broken_order)), d)
1398
1395 1399
1396 qa_sane = d.getVar("QA_SANE") 1400 qa_sane = d.getVar("QA_SANE")
1397 if not qa_sane: 1401 if not qa_sane: