summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-10-16 20:52:35 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-10-17 23:26:52 +0100
commit801141be68e5c754f2cd1d80d13982f037fc03e5 (patch)
tree0bbd49b93ce88c7bb7405c6851446a82aa0e6b33
parent02646be9d38fac14d9820d02d398b731b9c1bf9c (diff)
downloadopenembedded-core-contrib-801141be68e5c754f2cd1d80d13982f037fc03e5.tar.gz
openembedded-core-contrib-801141be68e5c754f2cd1d80d13982f037fc03e5.tar.bz2
openembedded-core-contrib-801141be68e5c754f2cd1d80d13982f037fc03e5.zip
libgcc/gcc-runtime: Disable thumb mode on armv6
Without this the build fails for armv6t targets due to invalid assembler instructions in thumb mode. [YOCTO #12929] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/gcc/gcc-runtime_8.2.bb2
-rw-r--r--meta/recipes-devtools/gcc/libgcc-initial_8.2.bb3
-rw-r--r--meta/recipes-devtools/gcc/libgcc_8.2.bb3
3 files changed, 8 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-runtime_8.2.bb b/meta/recipes-devtools/gcc/gcc-runtime_8.2.bb
index fe787174e8..a1c7a76d0b 100644
--- a/meta/recipes-devtools/gcc/gcc-runtime_8.2.bb
+++ b/meta/recipes-devtools/gcc/gcc-runtime_8.2.bb
@@ -8,3 +8,5 @@ FILES_libgomp-dev += "\
${libdir}/gcc/${TARGET_SYS}/${BINV}/include/openacc.h \
"
+# Building with thumb enabled on armv6t fails
+ARM_INSTRUCTION_SET_armv6 = "arm"
diff --git a/meta/recipes-devtools/gcc/libgcc-initial_8.2.bb b/meta/recipes-devtools/gcc/libgcc-initial_8.2.bb
index 19f253fce8..0c698c26ec 100644
--- a/meta/recipes-devtools/gcc/libgcc-initial_8.2.bb
+++ b/meta/recipes-devtools/gcc/libgcc-initial_8.2.bb
@@ -1,2 +1,5 @@
require recipes-devtools/gcc/gcc-${PV}.inc
require libgcc-initial.inc
+
+# Building with thumb enabled on armv6t fails
+ARM_INSTRUCTION_SET_armv6 = "arm"
diff --git a/meta/recipes-devtools/gcc/libgcc_8.2.bb b/meta/recipes-devtools/gcc/libgcc_8.2.bb
index a5152f28e9..ea210a1130 100644
--- a/meta/recipes-devtools/gcc/libgcc_8.2.bb
+++ b/meta/recipes-devtools/gcc/libgcc_8.2.bb
@@ -1,2 +1,5 @@
require recipes-devtools/gcc/gcc-${PV}.inc
require libgcc.inc
+
+# Building with thumb enabled on armv6t fails
+ARM_INSTRUCTION_SET_armv6 = "arm"