summaryrefslogtreecommitdiffstats
path: root/meta/classes/base.bbclass
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 23:04:12 +0100
commit7b88042b801403054e76c9bb51419c73acbb1d59 (patch)
tree0782726a254e9dba956ff42f43b44f721cc408d1 /meta/classes/base.bbclass
parent0321760d77070e59b5fbd509a33dd0b34fde628b (diff)
downloadpoky-7b88042b801403054e76c9bb51419c73acbb1d59.tar.gz
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). (From OE-Core rev: 67db7182faf6742b0d971d61d8c5ba34f69d2e12) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/base.bbclass')
-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 () {
468 "-cross-canadian-${TRANSLATED_TARGET_ARCH}"]: 468 "-cross-canadian-${TRANSLATED_TARGET_ARCH}"]:
469 if pn.endswith(d.expand(t)): 469 if pn.endswith(d.expand(t)):
470 check_license = False 470 check_license = False
471 if pn.startswith("gcc-source-"):
472 check_license = False
471 473
472 if check_license and bad_licenses: 474 if check_license and bad_licenses:
473 bad_licenses = expand_wildcard_licenses(d, bad_licenses) 475 bad_licenses = expand_wildcard_licenses(d, bad_licenses)