From a1434674773c4d9b00301f08a01a251bd63fa5b6 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Sat, 1 Nov 2008 17:16:34 +0000 Subject: 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(-) diff --git a/config/libc/uClibc.in b/config/libc/uClibc.in index c3784f9..de59560 100644 --- a/config/libc/uClibc.in +++ b/config/libc/uClibc.in @@ -61,6 +61,15 @@ config LIBC_VERSION # CT_INSERT_VERSION_STRING_ABOVE # Don't remove above line! +config LIBC_UCLIBC_PARALLEL + bool + prompt "Build uClibc in //" if LIBC_V_snapshot || LIBC_V_specific_date + default n + help + Build uClibc using parallel jobs. + Some 'old' versions won't build in //, but it works starting with + 0.9.30 release candidates. + choice bool prompt "uClibc verbosity:" diff --git a/scripts/build/libc/uClibc.sh b/scripts/build/libc/uClibc.sh index 0d43d45..9735718 100644 --- a/scripts/build/libc/uClibc.sh +++ b/scripts/build/libc/uClibc.sh @@ -117,12 +117,14 @@ do_libc() { # We do _not_ want to strip anything for now, in case we specifically # asked for a debug toolchain, thus the STRIPTOOL= assignment + # /Old/ versions can not build in // CT_DoLog EXTRA "Building C library" - CT_DoExecLog ALL \ - make CROSS=${CT_TARGET}- \ - PREFIX="${CT_SYSROOT_DIR}/" \ - STRIPTOOL=true \ - ${CT_LIBC_UCLIBC_VERBOSITY} \ + CT_DoExecLog ALL \ + make ${CT_LIBC_UCLIBC_PARALLEL:+${PARALLELMFLAGS}} \ + CROSS=${CT_TARGET}- \ + PREFIX="${CT_SYSROOT_DIR}/" \ + STRIPTOOL=true \ + ${CT_LIBC_UCLIBC_VERBOSITY} \ all # YEM-FIXME: we want to install libraries in $SYSROOT/lib, but we don't want -- cgit v0.10.2-6-g49f6