diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-04-11 15:11:50 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-04-12 13:40:21 +0100 |
commit | ec8a40e231ce67bb5502b309afeac2a4fda34fd6 (patch) | |
tree | dc931ff54bc51af6a7ec4a0c52247f08766d14b3 /meta/recipes-devtools/gcc | |
parent | 03cc7d03efa08a31776f19e4f93f5517c1f5147c (diff) | |
download | poky-ec8a40e231ce67bb5502b309afeac2a4fda34fd6.tar.gz |
gcc-cross-canadian: Make baremetal specific code generic
baremetal override is not valid for cross-canadian anymore
therefore use the TARGET_OS overrides
Fixes
e.g. https://github.com/riscv/meta-riscv/issues/117
(From OE-Core rev: 1bc122a044de280d17525c8e5ee66e81775a7d8b)
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-cross-canadian.inc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc index e7c08d3a61..807e47e0ee 100644 --- a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc +++ b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc | |||
@@ -159,10 +159,9 @@ SYSTEMLIBS = "${target_base_libdir}/" | |||
159 | SYSTEMLIBS1 = "${target_libdir}/" | 159 | SYSTEMLIBS1 = "${target_libdir}/" |
160 | 160 | ||
161 | EXTRA_OECONF += "--enable-poison-system-directories" | 161 | EXTRA_OECONF += "--enable-poison-system-directories" |
162 | 162 | EXTRA_OECONF_remove_elf = "--with-sysroot=/not/exist" | |
163 | EXTRA_OECONF_append_libc-baremetal = " --without-headers" | 163 | EXTRA_OECONF_remove_eabi = "--with-sysroot=/not/exist" |
164 | EXTRA_OECONF_remove_libc-baremetal = "--with-sysroot=/not/exist" | 164 | EXTRA_OECONF_append_elf = "--without-headers --with-newlib" |
165 | EXTRA_OECONF_remove_libc-baremetal = "--with-build-sysroot=${STAGING_DIR_TARGET}" | 165 | EXTRA_OECONF_append_eabi = "--without-headers --with-newlib" |
166 | |||
167 | # gcc 4.7 needs -isystem | 166 | # gcc 4.7 needs -isystem |
168 | export ARCH_FLAGS_FOR_TARGET = "--sysroot=${STAGING_DIR_TARGET} -isystem=${target_includedir}" | 167 | export ARCH_FLAGS_FOR_TARGET = "--sysroot=${STAGING_DIR_TARGET} -isystem=${target_includedir}" |