libc/newlib: add option to compile support for IOs on C99 formats
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Oct 23 01:21:20 2010 +0200 (2010-10-23)
changeset 21679cd8ee461fd0
parent 2166 c1fe0639585a
child 2168 974179cae714
libc/newlib: add option to compile support for IOs on C99 formats

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
config/libc/newlib.in.2
scripts/build/libc/newlib.sh
     1.1 --- a/config/libc/newlib.in.2	Sat Oct 23 00:53:41 2010 +0200
     1.2 +++ b/config/libc/newlib.in.2	Sat Oct 23 01:21:20 2010 +0200
     1.3 @@ -1,5 +1,12 @@
     1.4  # newlib second-part options
     1.5  
     1.6 +config LIBC_NEWLIB_IO_C99FMT
     1.7 +    bool
     1.8 +    prompt "Enable IOs on C99 formats"
     1.9 +    default n
    1.10 +    help
    1.11 +      Enable support for IOs on C99 formats.
    1.12 +
    1.13  config LIBC_NEWLIB_IO_LL
    1.14      bool
    1.15      prompt "Enable IOs on long long"
     2.1 --- a/scripts/build/libc/newlib.sh	Sat Oct 23 00:53:41 2010 +0200
     2.2 +++ b/scripts/build/libc/newlib.sh	Sat Oct 23 01:21:20 2010 +0200
     2.3 @@ -68,6 +68,11 @@
     2.4  
     2.5      CT_DoLog EXTRA "Configuring C library"
     2.6  
     2.7 +    if [ "${CT_LIBC_NEWLIB_IO_C99FMT}" = "y" ]; then
     2.8 +        newlib_opts+=( "--enable-newlib-io-c99-formats" )
     2.9 +    else
    2.10 +        newlib_opts+=( "--disable-newlib-io-c99-formats" )
    2.11 +    fi
    2.12      if [ "${CT_LIBC_NEWLIB_IO_LL}" = "y" ]; then
    2.13          newlib_opts+=( "--enable-newlib-io-long-long" )
    2.14      else