]> code.ossystems Code Review - openembedded-core.git/commitdiff
base.bbclass: Add cross-canadian-${TRANSLATED_TARGET_ARCH} to the license exclusion...
authorMark Hatle <mark.hatle@windriver.com>
Mon, 2 Jul 2012 20:43:11 +0000 (15:43 -0500)
committerSaul Wold <sgw@linux.intel.com>
Tue, 3 Jul 2012 07:05:40 +0000 (00:05 -0700)
This appears to be an oversight in the original implementation.  All of the
host package types were being ignored except for the SDK cross-canadian type.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
meta/classes/base.bbclass

index 9219170a30a75555d7f7e0adfa23d272426bf24a..08065c669e7eea0bda33ed3cec3bd694a43ec964 100644 (file)
@@ -432,7 +432,7 @@ python () {
 
         dont_want_license = d.getVar('INCOMPATIBLE_LICENSE', True)
 
-        if dont_want_license and not pn.endswith("-native") and not pn.endswith("-cross") and not pn.endswith("-cross-initial") and not pn.endswith("-cross-intermediate") and not pn.endswith("-crosssdk-intermediate") and not pn.endswith("-crosssdk") and not pn.endswith("-crosssdk-initial") and not pn.endswith("-nativesdk"):
+        if dont_want_license and not pn.endswith("-native") and not pn.endswith("-cross") and not pn.endswith("-cross-initial") and not pn.endswith("-cross-intermediate") and not pn.endswith("-crosssdk-intermediate") and not pn.endswith("-crosssdk") and not pn.endswith("-crosssdk-initial") and not pn.endswith("-cross-canadian-%s" % d.getVar('TRANSLATED_TARGET_ARCH', True)) and not pn.endswith("-nativesdk"):
         # Internally, we'll use the license mapping. This way INCOMPATIBLE_LICENSE = "GPLv2" and
         # INCOMPATIBLE_LICENSE = "GPLv2.0" will pick up all variations of GPL-2.0
             spdx_license = return_spdx(d, dont_want_license)