[oe-commits] Richard Purdie : base.bbclass: Update INCOMPATIBLE_LICENSE changes for gcc updates

git at git.openembedded.org git at git.openembedded.org
Wed Apr 30 15:39:48 UTC 2014


Module: openembedded-core.git
Branch: master
Commit: 8a733097bddcf0868fb5f8ca08ea59b2cbc4a3a9
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=8a733097bddcf0868fb5f8ca08ea59b2cbc4a3a9

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Wed Apr 30 13:59:56 2014 +0000

base.bbclass: Update INCOMPATIBLE_LICENSE changes for gcc updates

Add in the TARGET_ARCH and SDK_ARCH suffixes from the gcc-cross changes.
The -intermediate toolchain parts were canned a while ago so drop them.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/base.bbclass | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index f4f5321..2468b03 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -521,10 +521,10 @@ python () {
         bad_licenses = (d.getVar('INCOMPATIBLE_LICENSE', True) or "").split()
 
         check_license = False if pn.startswith("nativesdk-") else True
-        for t in ["-native", "-cross", "-cross-initial", "-cross-intermediate",
-              "-crosssdk-intermediate", "-crosssdk", "-crosssdk-initial",
-              "-cross-canadian-" + d.getVar('TRANSLATED_TARGET_ARCH', True)]:
-            if pn.endswith(t):
+        for t in ["-native", "-cross-${TARGET_ARCH}", "-cross-initial-${TARGET_ARCH}",
+              "-crosssdk-${SDK_ARCH}", "-crosssdk-initial-${SDK_ARCH}",
+              "-cross-canadian-${TRANSLATED_TARGET_ARCH}"]:
+            if pn.endswith(d.expand(t)):
                 check_license = False
 
         if check_license and bad_licenses:



More information about the Openembedded-commits mailing list