libc/newlib: add option to compile support for IOs on C99 formats

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
Yann E. MORIN" 2010-10-23 01:21:20 +02:00
parent 1a0ab9ad55
commit 9b87613c37
2 changed files with 12 additions and 0 deletions

View File

@ -1,5 +1,12 @@
# newlib second-part options # newlib second-part options
config LIBC_NEWLIB_IO_C99FMT
bool
prompt "Enable IOs on C99 formats"
default n
help
Enable support for IOs on C99 formats.
config LIBC_NEWLIB_IO_LL config LIBC_NEWLIB_IO_LL
bool bool
prompt "Enable IOs on long long" prompt "Enable IOs on long long"

View File

@ -68,6 +68,11 @@ do_libc_start_files() {
CT_DoLog EXTRA "Configuring C library" CT_DoLog EXTRA "Configuring C library"
if [ "${CT_LIBC_NEWLIB_IO_C99FMT}" = "y" ]; then
newlib_opts+=( "--enable-newlib-io-c99-formats" )
else
newlib_opts+=( "--disable-newlib-io-c99-formats" )
fi
if [ "${CT_LIBC_NEWLIB_IO_LL}" = "y" ]; then if [ "${CT_LIBC_NEWLIB_IO_LL}" = "y" ]; then
newlib_opts+=( "--enable-newlib-io-long-long" ) newlib_opts+=( "--enable-newlib-io-long-long" )
else else