libc/newlib: Add extra config for newlib.
authorZhenqiang Chen <zhenqiang.chen@linaro.org>
Fri Nov 18 11:47:30 2011 +0800 (2011-11-18)
changeset 2781504b0759c149
parent 2780 03ab39f149b4
child 2782 e3e1c9d45bdd
libc/newlib: Add extra config for newlib.

So users can input config like --enable-newlib-register-fini.

Reviewed-by: Michael Hope
Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>
config/libc/newlib.in.2
scripts/build/libc/newlib.sh
     1.1 --- a/config/libc/newlib.in.2	Thu Nov 17 18:00:28 2011 +0800
     1.2 +++ b/config/libc/newlib.in.2	Fri Nov 18 11:47:30 2011 +0800
     1.3 @@ -35,3 +35,9 @@
     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_EXTRA_CONFIG_ARRAY
     1.8 +    string
     1.9 +    prompt "Extra config for newlib"
    1.10 +    default ""
    1.11 +    help
    1.12 +      Extra flags to pass onto ./configure when configuring the newlib.
     2.1 --- a/scripts/build/libc/newlib.sh	Thu Nov 17 18:00:28 2011 +0800
     2.2 +++ b/scripts/build/libc/newlib.sh	Fri Nov 18 11:47:30 2011 +0800
     2.3 @@ -99,7 +99,8 @@
     2.4          --host=${CT_BUILD}                              \
     2.5          --target=${CT_TARGET}                           \
     2.6          --prefix=${CT_PREFIX_DIR}                       \
     2.7 -        "${newlib_opts[@]}"
     2.8 +        "${newlib_opts[@]}"                             \
     2.9 +        "${CT_LIBC_NEWLIB_EXTRA_CONFIG_ARRAY[@]}"
    2.10  
    2.11      CT_DoLog EXTRA "Building C library"
    2.12      CT_DoExecLog ALL make ${JOBSFLAGS}