All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
To: <openembedded-core@lists.openembedded.org>
Subject: [PATCH 6/6] base.bbclass: Clean up code to determine if licenses need checking
Date: Sun, 27 Feb 2022 19:21:37 +0100	[thread overview]
Message-ID: <20220227182138.5364-6-peter.kjellerstedt@axis.com> (raw)
In-Reply-To: <20220227182138.5364-1-peter.kjellerstedt@axis.com>

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
 meta/classes/base.bbclass | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 55f654d37d..b5f2aa3da8 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -583,14 +583,12 @@ python () {
 
         bad_licenses = (d.getVar('INCOMPATIBLE_LICENSE') or "").split()
 
-        check_license = False if pn.startswith("nativesdk-") else True
+        check_license = not pn.startswith("nativesdk-") and not pn.startswith("gcc-source-")
         for t in ["-native", "-cross-${TARGET_ARCH}", "-cross-initial-${TARGET_ARCH}",
               "-crosssdk-${SDK_SYS}", "-crosssdk-initial-${SDK_SYS}",
               "-cross-canadian-${TRANSLATED_TARGET_ARCH}"]:
             if pn.endswith(d.expand(t)):
                 check_license = False
-        if pn.startswith("gcc-source-"):
-            check_license = False
 
         if check_license and bad_licenses:
             bad_licenses = expand_wildcard_licenses(d, bad_licenses)


      parent reply	other threads:[~2022-02-27 18:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-27 18:21 [PATCH 1/6] default-distrovars.inc: Remove the empty default for WHITELIST_GPL-3.0 Peter Kjellerstedt
2022-02-27 18:21 ` [PATCH 2/6] selftest: recipetool: Correct the URI for socat Peter Kjellerstedt
2022-02-27 18:21 ` [PATCH 3/6] recipetool/create_buildsys_python: Add support for more known licenses Peter Kjellerstedt
2022-02-27 18:21 ` [PATCH 4/6] recipetool: Use SPDX license identifiers Peter Kjellerstedt
2022-02-27 18:21 ` [PATCH 5/6] meta, meta-selftest: Replace more non-SPDX " Peter Kjellerstedt
2022-02-27 18:21 ` Peter Kjellerstedt [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220227182138.5364-6-peter.kjellerstedt@axis.com \
    --to=peter.kjellerstedt@axis.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.