]> code.ossystems Code Review - openembedded-core.git/commitdiff
base.bbclass: Update INCOMPATIBLE_LICENSE changes for gcc updates
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 30 Apr 2014 13:59:56 +0000 (13:59 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 30 Apr 2014 15:33:26 +0000 (16:33 +0100)
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@linuxfoundation.org>
meta/classes/base.bbclass

index f4f5321ac876159d40dfab90703e8f0168b818b6..2468b03cce33290e6c68eea4c36ba7c56f32a6b3 100644 (file)
@@ -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: