summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-29 10:35:00 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-30 09:29:07 +0100
commit67db7182faf6742b0d971d61d8c5ba34f69d2e12 (patch)
tree9af4927683dd124dbd106a8f95314e2e89c8912d /meta/classes
parent15b39bfbb1a0263ac194a9833175b72ab7345ebd (diff)
downloadopenembedded-core-67db7182faf6742b0d971d61d8c5ba34f69d2e12.tar.gz
openembedded-core-67db7182faf6742b0d971d61d8c5ba34f69d2e12.tar.bz2
openembedded-core-67db7182faf6742b0d971d61d8c5ba34f69d2e12.zip
gcc-shared-source: Add PV to PN
This means you can have one gcc version for some gcc recipes (e.g. crosssdk/nativesdk) and another gcc version for target code. Also remove the preferred version entry from the default toolchains list since the version issue is now handled automatically. We also need to specifically handle gcc-source in the license handling code since expanding ${PV} in the base class isn't possible. Since gcc-source doesn't generate any packages directly this shouldn't be an issue and whitelisting in this way is easiest (and matches the rest of the toolchain handling). Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/base.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 0032b302cf..c6494e3cea 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -468,6 +468,8 @@ python () {
"-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)