diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-11-01 17:16:34 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-11-01 17:16:34 +0000 |
commit | a1434674773c4d9b00301f08a01a251bd63fa5b6 (patch) | |
tree | 8140cecf33b1e2fbf909378a1d1ddaccb1a05bff | |
parent | 958855acea2822ce05e18a9c26a91af8791e78d3 (diff) | |
download | crosstool-ng-a1434674773c4d9b00301f08a01a251bd63fa5b6.tar.gz crosstool-ng-a1434674773c4d9b00301f08a01a251bd63fa5b6.tar.bz2 crosstool-ng-a1434674773c4d9b00301f08a01a251bd63fa5b6.zip |
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(-)
-rw-r--r-- | config/libc/uClibc.in | 9 | ||||
-rw-r--r-- | scripts/build/libc/uClibc.sh | 12 |
2 files changed, 16 insertions, 5 deletions
diff --git a/config/libc/uClibc.in b/config/libc/uClibc.in index c3784f93..de59560f 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 0d43d45a..9735718a 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 |