diff options
author | Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com> | 2021-01-27 22:33:11 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-01-28 23:10:16 +0000 |
commit | 78f7cf59783faab6ef8d4f4fde774754db946519 (patch) | |
tree | 9ded63d98b2e66fa5b0dec5dfd1f8b7d311d08a6 /meta/classes/insane.bbclass | |
parent | 2d95aee64766341bf81f610386bac222e329f1bb (diff) | |
download | openembedded-core-contrib-78f7cf59783faab6ef8d4f4fde774754db946519.tar.gz |
insane: native-last: Only print classes inherited after native/nativesdk
For usability, only print the classes inherited after native/nativesdk
which makes it easier for the user to see where the problem is.
Realted to [YOCTO #5729].
Signed-off-by: Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/insane.bbclass')
-rw-r--r-- | meta/classes/insane.bbclass | 8 |
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 () { # native also inherits nopackages and relocatable bbclasses skip_classes.extend(['nopackages', 'relocatable']) + broken_order = [] for class_item in reversed(inherited_classes): if needle not in class_item: for extend_item in skip_classes: @@ -1388,10 +1389,13 @@ python () { break else: pn = d.getVar('PN') - package_qa_handle_error("native-last", "%s: native/nativesdk class is not inherited last, this can result in unexpected behaviour. " % pn, d) - break + broken_order.append(os.path.basename(class_item)) else: break + if broken_order: + package_qa_handle_error("native-last", "%s: native/nativesdk class is not inherited last, this can result in unexpected behaviour. " + "Classes inherited after native/nativesdk: %s" % (pn, " ".join(broken_order)), d) + qa_sane = d.getVar("QA_SANE") if not qa_sane: |