Use CT_DoExecLog when building uClibc.

/trunk/scripts/build/libc_uClibc.sh |   19    11     8     0 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)
This commit is contained in:
Yann E. MORIN"
2008-07-14 15:48:51 +00:00
parent 972fdecb11
commit 00084df12b

View File

@ -72,13 +72,13 @@ do_libc_headers() {
# use of the native build host tools, which we need at this # use of the native build host tools, which we need at this
# stage, as we don't have target tools yet. # stage, as we don't have target tools yet.
CT_DoLog EXTRA "Applying configuration" CT_DoLog EXTRA "Applying configuration"
CT_DoYes "" |make CROSS= PREFIX="${CT_SYSROOT_DIR}/" oldconfig 2>&1 |CT_DoLog ALL CT_DoYes "" |CT_DoExecLog ALL make CROSS= PREFIX="${CT_SYSROOT_DIR}/" oldconfig
CT_DoLog EXTRA "Building headers" CT_DoLog EXTRA "Building headers"
make ${CT_LIBC_UCLIBC_VERBOSITY} CROSS= PREFIX="${CT_SYSROOT_DIR}/" headers 2>&1 |CT_DoLog ALL CT_DoExecLog ALL make ${CT_LIBC_UCLIBC_VERBOSITY} CROSS= PREFIX="${CT_SYSROOT_DIR}/" headers
CT_DoLog EXTRA "Installing headers" CT_DoLog EXTRA "Installing headers"
make ${CT_LIBC_UCLIBC_VERBOSITY} CROSS= PREFIX="${CT_SYSROOT_DIR}/" install_dev 2>&1 |CT_DoLog ALL CT_DoExecLog ALL make ${CT_LIBC_UCLIBC_VERBOSITY} CROSS= PREFIX="${CT_SYSROOT_DIR}/" install_dev
CT_EndStep CT_EndStep
} }
@ -110,18 +110,20 @@ do_libc() {
# to best fit the target. So it is useless and seems to be a bad thing to # to best fit the target. So it is useless and seems to be a bad thing to
# use LIBC_EXTRA_CFLAGS here. # use LIBC_EXTRA_CFLAGS here.
CT_DoLog EXTRA "Applying configuration" CT_DoLog EXTRA "Applying configuration"
CT_DoYes "" |make CROSS=${CT_TARGET}- \ CT_DoYes "" |CT_DoExecLog ALL \
PREFIX="${CT_SYSROOT_DIR}/" \ make CROSS=${CT_TARGET}- \
oldconfig 2>&1 |CT_DoLog ALL PREFIX="${CT_SYSROOT_DIR}/" \
oldconfig
# We do _not_ want to strip anything for now, in case we specifically # We do _not_ want to strip anything for now, in case we specifically
# asked for a debug toolchain, thus the STRIPTOOL= assignment # asked for a debug toolchain, thus the STRIPTOOL= assignment
CT_DoLog EXTRA "Building C library" CT_DoLog EXTRA "Building C library"
CT_DoExecLog ALL \
make CROSS=${CT_TARGET}- \ make CROSS=${CT_TARGET}- \
PREFIX="${CT_SYSROOT_DIR}/" \ PREFIX="${CT_SYSROOT_DIR}/" \
STRIPTOOL=true \ STRIPTOOL=true \
${CT_LIBC_UCLIBC_VERBOSITY} \ ${CT_LIBC_UCLIBC_VERBOSITY} \
all 2>&1 |CT_DoLog ALL all
# YEM-FIXME: we want to install libraries in $SYSROOT/lib, but we don't want # YEM-FIXME: we want to install libraries in $SYSROOT/lib, but we don't want
# to install headers in $SYSROOT/include, thus making only install_runtime. # to install headers in $SYSROOT/include, thus making only install_runtime.
@ -132,11 +134,12 @@ do_libc() {
# We do _not_ want to strip anything for now, in case we specifically # We do _not_ want to strip anything for now, in case we specifically
# asked for a debug toolchain, thus the STRIPTOOL= assignment # asked for a debug toolchain, thus the STRIPTOOL= assignment
CT_DoLog EXTRA "Installing C library" CT_DoLog EXTRA "Installing C library"
CT_DoExecLog ALL \
make CROSS=${CT_TARGET}- \ make CROSS=${CT_TARGET}- \
PREFIX="${CT_SYSROOT_DIR}/" \ PREFIX="${CT_SYSROOT_DIR}/" \
STRIPTOOL=true \ STRIPTOOL=true \
${CT_LIBC_UCLIBC_VERBOSITY} \ ${CT_LIBC_UCLIBC_VERBOSITY} \
install 2>&1 |CT_DoLog ALL install
CT_EndStep CT_EndStep
} }