From 67db7182faf6742b0d971d61d8c5ba34f69d2e12 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 29 Apr 2015 10:35:00 +0100 Subject: 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 --- meta/classes/base.bbclass | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta/classes') 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) -- cgit 1.2.3-korg