diff options
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-target.inc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-target.inc b/meta/recipes-devtools/gcc/gcc-target.inc index b6e31f5d93..56e4b95af4 100644 --- a/meta/recipes-devtools/gcc/gcc-target.inc +++ b/meta/recipes-devtools/gcc/gcc-target.inc | |||
@@ -9,13 +9,14 @@ EXTRA_OECONF_PATHS = "\ | |||
9 | 9 | ||
10 | EXTRA_OECONF_append_linuxstdbase = " --enable-clocale=gnu" | 10 | EXTRA_OECONF_append_linuxstdbase = " --enable-clocale=gnu" |
11 | 11 | ||
12 | # ARMv6+ adds atomic instructions that affect the ABI in libraries built | 12 | # Configure gcc running on the target to default to an architecture which will |
13 | # with TUNE_CCARGS in gcc-runtime. Make the compiler default to a | 13 | # be compatible with that of gcc-runtime (which is cross compiled to be target |
14 | # compatible architecture. armv6 and armv7a cover the minimum tune | 14 | # specific). For example, for ARM, ARMv6+ adds atomic instructions that may |
15 | # features used in OE. | 15 | # affect the ABI in the gcc-runtime libs. Since we can't rely on gcc on the |
16 | # target to always be passed -march etc, its built-in default needs to be safe. | ||
16 | EXTRA_OECONF_append_armv6 = " --with-arch=armv6" | 17 | EXTRA_OECONF_append_armv6 = " --with-arch=armv6" |
17 | EXTRA_OECONF_append_armv7a = " --with-arch=armv7-a" | 18 | EXTRA_OECONF_append_armv7a = " --with-arch=armv7-a" |
18 | EXTRA_OECONF_append_armv7ve = " --with-arch=armv7-a" | 19 | EXTRA_OECONF_append_armv7ve = " --with-arch=armv7ve" |
19 | 20 | ||
20 | # libcc1 requres gcc_cv_objdump when cross build, but gcc_cv_objdump is | 21 | # libcc1 requres gcc_cv_objdump when cross build, but gcc_cv_objdump is |
21 | # set in subdir gcc, so subdir libcc1 can't use it, export it here to | 22 | # set in subdir gcc, so subdir libcc1 can't use it, export it here to |