diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-04-29 10:35:00 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-04-30 23:04:12 +0100 |
commit | 7b88042b801403054e76c9bb51419c73acbb1d59 (patch) | |
tree | 0782726a254e9dba956ff42f43b44f721cc408d1 /meta/recipes-devtools/gcc | |
parent | 0321760d77070e59b5fbd509a33dd0b34fde628b (diff) | |
download | poky-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/recipes-devtools/gcc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-shared-source.inc | 4 | ||||
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-source.inc | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-shared-source.inc b/meta/recipes-devtools/gcc/gcc-shared-source.inc index cb5d9071b6..9acffb1da7 100644 --- a/meta/recipes-devtools/gcc/gcc-shared-source.inc +++ b/meta/recipes-devtools/gcc/gcc-shared-source.inc | |||
@@ -5,5 +5,5 @@ do_fetch[noexec] = "1" | |||
5 | deltask do_unpack | 5 | deltask do_unpack |
6 | deltask do_patch | 6 | deltask do_patch |
7 | 7 | ||
8 | do_configure[depends] += "gcc-source:do_preconfigure" | 8 | do_configure[depends] += "gcc-source-${PV}:do_preconfigure" |
9 | do_populate_lic[depends] += "gcc-source:do_unpack" | 9 | do_populate_lic[depends] += "gcc-source-${PV}:do_unpack" |
diff --git a/meta/recipes-devtools/gcc/gcc-source.inc b/meta/recipes-devtools/gcc/gcc-source.inc index 10e9285c44..a4b27c8fd3 100644 --- a/meta/recipes-devtools/gcc/gcc-source.inc +++ b/meta/recipes-devtools/gcc/gcc-source.inc | |||
@@ -11,6 +11,7 @@ deltask do_package_qa | |||
11 | deltask do_packagedata | 11 | deltask do_packagedata |
12 | deltask do_rm_work | 12 | deltask do_rm_work |
13 | 13 | ||
14 | PN = "gcc-source-${PV}" | ||
14 | WORKDIR = "${TMPDIR}/work-shared/gcc-${PV}-${PR}" | 15 | WORKDIR = "${TMPDIR}/work-shared/gcc-${PV}-${PR}" |
15 | SSTATE_SWSPEC = "sstate:gcc::${PV}:${PR}::${SSTATE_VERSION}:" | 16 | SSTATE_SWSPEC = "sstate:gcc::${PV}:${PR}::${SSTATE_VERSION}:" |
16 | 17 | ||