summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-05-05 16:59:47 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-05-12 15:20:43 +0100
commit9e44438a9deb7b6bfac3f82f31a1a7ad138a5d16 (patch)
tree8778f1b574ad5680b3beb92dfa968291f533259b /meta/recipes-devtools/gcc
parentee19781d886fdaa6472888e0041918f246f1c425 (diff)
downloadpoky-9e44438a9deb7b6bfac3f82f31a1a7ad138a5d16.tar.gz
gcc-runtime: Avoid march conflicts with newer cortex-a55 CPUs
gcc-runtime/libatomic explicitly add -march=armv8-a+lse for all arch64 but cortex-a55 is armv8.2-a, which essentially conflicts, so let gcc override it by not forcing the -mcpu option from TUNE_CCARGS (From OE-Core rev: 882df891e13ce5c64718c364efb9ef2bf189eabf) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc')
-rw-r--r--meta/recipes-devtools/gcc/gcc-runtime.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-runtime.inc b/meta/recipes-devtools/gcc/gcc-runtime.inc
index ace706dbf4..d9a4e483cc 100644
--- a/meta/recipes-devtools/gcc/gcc-runtime.inc
+++ b/meta/recipes-devtools/gcc/gcc-runtime.inc
@@ -18,6 +18,10 @@ EXTRA_OECONF_append_linuxstdbase = " --enable-clocale=gnu"
18EXTRA_OECONF_append = " --cache-file=${B}/config.cache" 18EXTRA_OECONF_append = " --cache-file=${B}/config.cache"
19EXTRA_OECONF_append_libc-newlib = " --with-newlib" 19EXTRA_OECONF_append_libc-newlib = " --with-newlib"
20 20
21# cortex-a55 is ARMv8.2-a based but libatomic explicitly asks for -march=armv8.1-a
22# which caused -march conflicts in gcc
23TUNE_CCARGS_remove = "-mcpu=cortex-a55+crc -mcpu=cortex-a55 -mcpu=cortex-a55+crc+crypto"
24
21# Disable ifuncs for libatomic on arm conflicts -march/-mcpu 25# Disable ifuncs for libatomic on arm conflicts -march/-mcpu
22EXTRA_OECONF_append_arm = " libat_cv_have_ifunc=no " 26EXTRA_OECONF_append_arm = " libat_cv_have_ifunc=no "
23EXTRA_OECONF_append_armeb = " libat_cv_have_ifunc=no " 27EXTRA_OECONF_append_armeb = " libat_cv_have_ifunc=no "