Enable uClibc parallel build for those versions supporting it.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Nov 01 17:16:34 2008 +0000 (2008-11-01)
changeset 1029f1b5700819cc
parent 1028 a934a4d0e602
child 1030 e5bf882d6514
Enable uClibc parallel build for those versions supporting it.

/trunk/scripts/build/libc/uClibc.sh | 12 7 5 0 +++++++-----
/trunk/config/libc/uClibc.in | 9 9 0 0 +++++++++
2 files changed, 16 insertions(+), 5 deletions(-)
config/libc/uClibc.in
scripts/build/libc/uClibc.sh
     1.1 --- a/config/libc/uClibc.in	Sat Nov 01 17:13:54 2008 +0000
     1.2 +++ b/config/libc/uClibc.in	Sat Nov 01 17:16:34 2008 +0000
     1.3 @@ -61,6 +61,15 @@
     1.4  # CT_INSERT_VERSION_STRING_ABOVE
     1.5  # Don't remove above line!
     1.6  
     1.7 +config LIBC_UCLIBC_PARALLEL
     1.8 +    bool
     1.9 +    prompt "Build uClibc in //" if LIBC_V_snapshot || LIBC_V_specific_date
    1.10 +    default n
    1.11 +    help
    1.12 +      Build uClibc using parallel jobs.
    1.13 +      Some 'old' versions won't build in //, but it works starting with
    1.14 +      0.9.30 release candidates.
    1.15 +
    1.16  choice
    1.17      bool
    1.18      prompt "uClibc verbosity:"
     2.1 --- a/scripts/build/libc/uClibc.sh	Sat Nov 01 17:13:54 2008 +0000
     2.2 +++ b/scripts/build/libc/uClibc.sh	Sat Nov 01 17:16:34 2008 +0000
     2.3 @@ -117,12 +117,14 @@
     2.4  
     2.5      # We do _not_ want to strip anything for now, in case we specifically
     2.6      # asked for a debug toolchain, thus the STRIPTOOL= assignment
     2.7 +    # /Old/ versions can not build in //
     2.8      CT_DoLog EXTRA "Building C library"
     2.9 -    CT_DoExecLog ALL                    \
    2.10 -    make CROSS=${CT_TARGET}-            \
    2.11 -         PREFIX="${CT_SYSROOT_DIR}/"    \
    2.12 -         STRIPTOOL=true                 \
    2.13 -         ${CT_LIBC_UCLIBC_VERBOSITY}    \
    2.14 +    CT_DoExecLog ALL                                    \
    2.15 +    make ${CT_LIBC_UCLIBC_PARALLEL:+${PARALLELMFLAGS}}  \
    2.16 +         CROSS=${CT_TARGET}-                            \
    2.17 +         PREFIX="${CT_SYSROOT_DIR}/"                    \
    2.18 +         STRIPTOOL=true                                 \
    2.19 +         ${CT_LIBC_UCLIBC_VERBOSITY}                    \
    2.20           all
    2.21  
    2.22      # YEM-FIXME: we want to install libraries in $SYSROOT/lib, but we don't want