From 6476f8a9403bd3c4b1477a23d0bbba1961ed9f66 Mon Sep 17 00:00:00 2001 From: Bryan Hundven Date: Wed, 13 Jan 2016 06:22:59 -0800 Subject: newlib: add option to enable nano formatted io Signed-off-by: Bryan Hundven diff --git a/config/libc/newlib.in.2 b/config/libc/newlib.in.2 index ed35566..48e5503 100644 --- a/config/libc/newlib.in.2 +++ b/config/libc/newlib.in.2 @@ -55,6 +55,16 @@ config LIBC_NEWLIB_NANO_MALLOC with very limited memory. Note that this implementation does not support `--enable-malloc-debugging' any more. +config LIBC_NEWLIB_NANO_FORMATTED_IO + bool + prompt "Enable Nano Formatted I/O" + depends on LIBC_NEWLIB_2_2_or_later + help + This builds NEWLIB with a special implementation of formatted I/O + functions, designed to lower the size of application on small systems + with size constraint issues. This option does not affect wide-char + formatted I/O functions. + config LIBC_NEWLIB_EXTRA_CONFIG_ARRAY string prompt "Extra config for newlib" diff --git a/scripts/build/libc/newlib.sh b/scripts/build/libc/newlib.sh index 1b0737e..e70b669 100644 --- a/scripts/build/libc/newlib.sh +++ b/scripts/build/libc/newlib.sh @@ -99,6 +99,9 @@ do_libc() { if [ "${CT_LIBC_NEWLIB_NANO_MALLOC}" = "y" ]; then newlib_opts+=( "--enable-newlib-nano-malloc" ) fi + if [ "${CT_LIBC_NEWLIB_NANO_FORMATTED_IO}" = "y" ]; then + newlib_opts+=( "--enable-newlib-nano-formatted-io" ) + fi [ "${CT_LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE}" = "y" ] && newlib_opts+=("--enable-target-optspace") -- cgit v0.10.2-6-g49f6