diff options
Diffstat (limited to 'meta-xilinx/meta-xilinx-standalone/recipes-core/newlib/newlib_4.%.bbappend')
-rw-r--r-- | meta-xilinx/meta-xilinx-standalone/recipes-core/newlib/newlib_4.%.bbappend | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/meta-xilinx/meta-xilinx-standalone/recipes-core/newlib/newlib_4.%.bbappend b/meta-xilinx/meta-xilinx-standalone/recipes-core/newlib/newlib_4.%.bbappend new file mode 100644 index 000000000..90522cfbc --- /dev/null +++ b/meta-xilinx/meta-xilinx-standalone/recipes-core/newlib/newlib_4.%.bbappend @@ -0,0 +1,20 @@ +COMPATIBLE_HOST = ".*-elf" +COMPATIBLE_HOST_arm = "[^-]*-[^-]*-eabi" + +EXTRA_OECONF_append_xilinx-standalone = " \ + --enable-newlib-io-c99-formats \ + --enable-newlib-io-long-long \ + --enable-newlib-io-float \ + --enable-newlib-io-long-double \ +" + +# Avoid trimmping CCARGS from CC by newlib configure +do_configure_prepend_xilinx-standalone(){ + export CC_FOR_TARGET="${CC}" +} + +# Fix for multilib newlib installations +do_install_prepend_xilinx-standalone() { + mkdir -p $(dirname ${D}${libdir}) + mkdir -p $(dirname ${D}${includedir}) +} |