With the move to make more warnings into errors it is inevitable that we
will need more hooks to skip the errors on a recipe by recipe basis.
This patch just adds INSANE_SKIP support for the incompatible-license check.

Signed-off-by: Ryan Eatmon <[email protected]>
---
 meta/lib/oe/package.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/meta/lib/oe/package.py b/meta/lib/oe/package.py
index e6b46a0dc5..a2b9019db6 100644
--- a/meta/lib/oe/package.py
+++ b/meta/lib/oe/package.py
@@ -1411,8 +1411,11 @@ def populate_packages(d):
     for pkg in packages:
         licenses = d.getVar('_exclude_incompatible-' + pkg)
         if licenses:
-            msg = "Excluding %s from packaging as it has incompatible 
license(s): %s" % (pkg, licenses)
-            oe.qa.handle_error("incompatible-license", msg, d)
+            if "incompatible-license" in (d.getVar('INSANE_SKIP:' + pn) or 
"").split():
+                bb.note("Package %s skipping QA tests: incompatible-license" % 
pn)
+            else:
+                msg = "Excluding %s from packaging as it has incompatible 
license(s): %s" % (pkg, licenses)
+                oe.qa.handle_error("incompatible-license", msg, d)
         else:
             package_list.append(pkg)
     d.setVar('PACKAGES', ' '.join(package_list))
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#201943): 
https://lists.openembedded.org/g/openembedded-core/message/201943
Mute This Topic: https://lists.openembedded.org/mt/107238087/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to