diff options
author | Bryan Hundven <bryanhundven@gmail.com> | 2016-01-13 06:22:59 -0800 |
---|---|---|
committer | Bryan Hundven <bryanhundven@gmail.com> | 2016-03-08 04:48:27 -0800 |
commit | 6476f8a9403bd3c4b1477a23d0bbba1961ed9f66 (patch) | |
tree | e246a77d47b1575d15d4e30e57a2fc6eacb17fb8 | |
parent | 929e027500188ee1857b41c7b652ea0cdbc28b1d (diff) | |
download | crosstool-ng-6476f8a9403bd3c4b1477a23d0bbba1961ed9f66.tar.gz crosstool-ng-6476f8a9403bd3c4b1477a23d0bbba1961ed9f66.tar.bz2 crosstool-ng-6476f8a9403bd3c4b1477a23d0bbba1961ed9f66.zip |
newlib: add option to enable nano formatted io
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
-rw-r--r-- | config/libc/newlib.in.2 | 10 | ||||
-rw-r--r-- | scripts/build/libc/newlib.sh | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/config/libc/newlib.in.2 b/config/libc/newlib.in.2 index ed355668..48e5503f 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 1b0737e1..e70b6690 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") |