]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc-shared-source: Add PV to PN
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 29 Apr 2015 09:35:00 +0000 (10:35 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 30 Apr 2015 08:29:07 +0000 (09:29 +0100)
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>
meta/classes/base.bbclass
meta/conf/distro/include/tcmode-default.inc
meta/recipes-devtools/gcc/gcc-shared-source.inc
meta/recipes-devtools/gcc/gcc-source.inc

index 0032b302cf353c62c43c8560067aab6d2ed43339..c6494e3ceac7c1c5bb00906ae833bdcc099931d9 100644 (file)
@@ -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)
index e3df93475fb26c787a39506dd6bc48951e9a951b..096bec9fd6232862b89fdad650db838165a105c8 100644 (file)
@@ -38,7 +38,6 @@ PREFERRED_VERSION_gcc-crosssdk-initial-${SDK_ARCH} ?= "${SDKGCCVERSION}"
 PREFERRED_VERSION_gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "${GCCVERSION}"
 PREFERRED_VERSION_gcc-runtime ?= "${GCCVERSION}"
 PREFERRED_VERSION_gcc-sanitizers ?= "${GCCVERSION}"
-PREFERRED_VERSION_gcc-source ?= "${GCCVERSION}"
 PREFERRED_VERSION_nativesdk-gcc-runtime ?= "${SDKGCCVERSION}"
 PREFERRED_VERSION_nativesdk-gcc-sanitizers ?= "${SDKGCCVERSION}"
 PREFERRED_VERSION_libgcc ?= "${GCCVERSION}"
index cb5d9071b6726cf5ee74ae67bd71aaed9ec675fb..9acffb1da77ff191e5062ba3d7981a3ee447dede 100644 (file)
@@ -5,5 +5,5 @@ do_fetch[noexec] = "1"
 deltask do_unpack
 deltask do_patch
 
-do_configure[depends] += "gcc-source:do_preconfigure"
-do_populate_lic[depends] += "gcc-source:do_unpack"
+do_configure[depends] += "gcc-source-${PV}:do_preconfigure"
+do_populate_lic[depends] += "gcc-source-${PV}:do_unpack"
index 10e9285c44389450b31b7cb2c6560cef44867855..a4b27c8fd398f35a7b46ddc701888d0845975868 100644 (file)
@@ -11,6 +11,7 @@ deltask do_package_qa
 deltask do_packagedata
 deltask do_rm_work
 
+PN = "gcc-source-${PV}"
 WORKDIR = "${TMPDIR}/work-shared/gcc-${PV}-${PR}"
 SSTATE_SWSPEC = "sstate:gcc::${PV}:${PR}::${SSTATE_VERSION}:"