1.1 --- a/config/libc/newlib.in.2 Fri Nov 18 11:32:50 2011 +0800
1.2 +++ b/config/libc/newlib.in.2 Tue Nov 22 14:18:14 2011 +0800
1.3 @@ -35,6 +35,15 @@
1.4 _write... If you plan to port newlib to a new
1.5 platform/board, say Yes.
1.6
1.7 +config LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE
1.8 + bool
1.9 + prompt "Optimize newlib for size"
1.10 + default y
1.11 + help
1.12 + Pass --enable-target-optspace to newlib configure.
1.13 +
1.14 + This will compile newlib with -Os.
1.15 +
1.16 config LIBC_NEWLIB_EXTRA_CONFIG_ARRAY
1.17 string
1.18 prompt "Extra config for newlib"
2.1 --- a/scripts/build/libc/newlib.sh Fri Nov 18 11:32:50 2011 +0800
2.2 +++ b/scripts/build/libc/newlib.sh Tue Nov 22 14:18:14 2011 +0800
2.3 @@ -85,6 +85,8 @@
2.4 newlib_opts+=( "--enable-newlib-supplied-syscalls" )
2.5 fi
2.6
2.7 + [ "${CT_LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE}" = "y" ] && newlib_opts+=("--enable-target-optspace")
2.8 +
2.9 # Note: newlib handles the build/host/target a little bit differently
2.10 # than one would expect:
2.11 # build : not used