summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/libc/newlib.in.210
-rw-r--r--scripts/build/libc/newlib.sh3
2 files changed, 13 insertions, 0 deletions
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")