diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-04-30 19:47:30 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-05-07 13:03:30 +0100 |
commit | 323560d6ae04a2e428e8f036b24732d5b13e77df (patch) | |
tree | 4ecefa3b212ad3872e14ee1581bb26ccfd5cd734 | |
parent | 65aa038fa01e57ac8135e2da51c80571e889323f (diff) | |
download | poky-323560d6ae04a2e428e8f036b24732d5b13e77df.tar.gz |
gcc-target: Ensure buildtools-extended-tarball doesn't use arch=native
A nativesdk BBCLASSEXTEND was added to gcc-target without realising this
would pass arch=native through to it for x86-64. This heavily optimises
gcc output for the host its running on meaning it can't be reused via
sstate on other machines.
Add class-target overrides here to get the desired behaviour. All
targets have been covered for completeness.
(From OE-Core rev: 3fff2c9400f2f64cbc8cc450b5ab29505eacbdd1)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-target.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-target.inc b/meta/recipes-devtools/gcc/gcc-target.inc index 8cb432780f..6263e81497 100644 --- a/meta/recipes-devtools/gcc/gcc-target.inc +++ b/meta/recipes-devtools/gcc/gcc-target.inc | |||
@@ -15,11 +15,11 @@ EXTRA_OECONF_append_linuxstdbase = " --enable-clocale=gnu" | |||
15 | 15 | ||
16 | ARMFPARCHEXT ?= "" | 16 | ARMFPARCHEXT ?= "" |
17 | 17 | ||
18 | EXTRA_OECONF_append_armv6 = " --with-arch=armv6${ARMFPARCHEXT}" | 18 | EXTRA_OECONF_append_armv6_class-target = " --with-arch=armv6${ARMFPARCHEXT}" |
19 | EXTRA_OECONF_append_armv7a = " --with-arch=armv7-a${ARMFPARCHEXT}" | 19 | EXTRA_OECONF_append_armv7a_class-target = " --with-arch=armv7-a${ARMFPARCHEXT}" |
20 | EXTRA_OECONF_append_armv7ve = " --with-arch=armv7ve${ARMFPARCHEXT}" | 20 | EXTRA_OECONF_append_armv7ve_class-target = " --with-arch=armv7ve${ARMFPARCHEXT}" |
21 | EXTRA_OECONF_append_arc = " --with-cpu=${TUNE_PKGARCH}" | 21 | EXTRA_OECONF_append_arc_class-target = " --with-cpu=${TUNE_PKGARCH}" |
22 | EXTRA_OECONF_append_x86-64 = " --with-arch=native" | 22 | EXTRA_OECONF_append_x86-64_class-target = " --with-arch=native" |
23 | 23 | ||
24 | # libcc1 requres gcc_cv_objdump when cross build, but gcc_cv_objdump is | 24 | # libcc1 requres gcc_cv_objdump when cross build, but gcc_cv_objdump is |
25 | # set in subdir gcc, so subdir libcc1 can't use it, export it here to | 25 | # set in subdir gcc, so subdir libcc1 can't use it, export it here to |