Skip to contentSkip to conversation

gcc-cross-canadian: Make baremetal specific code generic

PATCH New Khem Raj 1 participant 1 message Apr 11, 2019

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH v2 1/1 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

---
 meta/recipes-devtools/gcc/gcc-cross-canadian.inc | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
meta/recipes-devtools/gcc/gcc-cross-canadian.inc +4 -5
index e7c08d3a61..807e47e0ee 100644
@@ -159,10 +159,9 @@ SYSTEMLIBS = "${target_base_libdir}/"
 SYSTEMLIBS1 = "${target_libdir}/"
 
 EXTRA_OECONF += "--enable-poison-system-directories"
-
-EXTRA_OECONF_append_libc-baremetal = " --without-headers"
-EXTRA_OECONF_remove_libc-baremetal = "--with-sysroot=/not/exist"
-EXTRA_OECONF_remove_libc-baremetal = "--with-build-sysroot=${STAGING_DIR_TARGET}"
-
+EXTRA_OECONF_remove_elf = "--with-sysroot=/not/exist"
+EXTRA_OECONF_remove_eabi = "--with-sysroot=/not/exist"
+EXTRA_OECONF_append_elf = "--without-headers --with-newlib"
+EXTRA_OECONF_append_eabi = "--without-headers --with-newlib"
 # gcc 4.7 needs -isystem
 export ARCH_FLAGS_FOR_TARGET = "--sysroot=${STAGING_DIR_TARGET} -isystem=${target_includedir}"
Signature · 1 line
2.21.0