summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-10-26 22:20:33 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-10-26 22:20:33 (GMT)
commite8bd15286365f3f984fe4bf8ebccb4aa23c17870 (patch)
tree84637d644bdaf65c535531e21eb5fde487939746 /scripts
parent88c997020f8bd963227cd823c0a336142b6289cf (diff)
libc/newlib: cleanup the build and finish steps
build step: - ./configure - remove glibc-specific options - pass the target CFLAGS in the correct variable - make: - build in // finish step: - print proper message in finish step
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/libc/newlib.sh26
1 files changed, 12 insertions, 14 deletions
diff --git a/scripts/build/libc/newlib.sh b/scripts/build/libc/newlib.sh
index 4c32f2a..09bbdac 100644
--- a/scripts/build/libc/newlib.sh
+++ b/scripts/build/libc/newlib.sh
@@ -51,22 +51,19 @@ do_libc() {
# build : not used
# host : the machine building newlib
# target : the machine newlib runs on
-# CC="${CT_TARGET}-gcc ${CT_LIBC_EXTRA_CC_ARGS} ${extra_cc_args}" \
- BUILD_CC="${CT_BUILD}-gcc" \
- CFLAGS="${CT_TARGET_CFLAGS} ${CT_LIBC_GLIBC_EXTRA_CFLAGS} -O" \
- AR=${CT_TARGET}-ar \
- RANLIB=${CT_TARGET}-ranlib \
- CT_DoExecLog ALL \
- "${CT_SRC_DIR}/newlib-${CT_LIBC_VERSION}/configure" \
- --host=${CT_BUILD} \
- --target=${CT_TARGET} \
- --prefix=${CT_PREFIX_DIR} \
- ${extra_config} \
- ${CT_LIBC_GLIBC_EXTRA_CONFIG}
+ CC_FOR_BUILD="${CT_BUILD}-gcc" \
+ CFLAGS_FOR_TARGET="${CT_TARGET_CFLAGS} -O" \
+ AR=${CT_TARGET}-ar \
+ RANLIB=${CT_TARGET}-ranlib \
+ CT_DoExecLog ALL \
+ "${CT_SRC_DIR}/newlib-${CT_LIBC_VERSION}/configure" \
+ --host=${CT_BUILD} \
+ --target=${CT_TARGET} \
+ --prefix=${CT_PREFIX_DIR}
CT_DoLog EXTRA "Building C library"
- CT_DoExecLog ALL make
+ CT_DoExecLog ALL make ${PARALLELMFLAGS}
CT_DoLog EXTRA "Installing C library"
@@ -76,9 +73,10 @@ do_libc() {
}
do_libc_finish() {
- CT_DoStep INFO "Installing Atmel AVR32 headers"
+ CT_DoStep INFO "Finishing C library"
if [ "${CT_ATMEL_AVR32_HEADERS}" = "y" ]; then
+ CT_DoLog EXTRA "Installing Atmel's AVR32 headers"
CT_DoExecLog ALL cp -r ${CT_SRC_DIR}/avr32headers "${CT_PREFIX_DIR}/${CT_TARGET}/include/avr32"
fi