diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-07-14 21:57:57 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-07-14 21:57:57 +0000 |
commit | 6e1b1ccb7d5993346292b7ecd4293ef1719f683c (patch) | |
tree | 0f7221bd11ed24f37ad92a3952261e50bece2973 /scripts/build/debug | |
parent | e377769fb19a01b03e0205960b74f4b2b87793b1 (diff) | |
download | crosstool-ng-6e1b1ccb7d5993346292b7ecd4293ef1719f683c.tar.gz crosstool-ng-6e1b1ccb7d5993346292b7ecd4293ef1719f683c.tar.bz2 crosstool-ng-6e1b1ccb7d5993346292b7ecd4293ef1719f683c.zip |
Use CT_DoExecLog when building tools and debug utilities.
/trunk/scripts/build/tools/200-sstrip.sh | 12 6 6 0 ++++++------
/trunk/scripts/build/debug/100-dmalloc.sh | 10 5 5 0 +++++-----
/trunk/scripts/build/debug/400-ltrace.sh | 5 3 2 0 +++--
/trunk/scripts/build/debug/300-gdb.sh | 30 17 13 0 +++++++++++++++++-------------
/trunk/scripts/build/debug/500-strace.sh | 7 4 3 0 ++++---
/trunk/scripts/build/debug/200-duma.sh | 5 3 2 0 +++--
6 files changed, 38 insertions(+), 31 deletions(-)
Diffstat (limited to 'scripts/build/debug')
-rw-r--r-- | scripts/build/debug/100-dmalloc.sh | 10 | ||||
-rw-r--r-- | scripts/build/debug/200-duma.sh | 5 | ||||
-rw-r--r-- | scripts/build/debug/300-gdb.sh | 30 | ||||
-rw-r--r-- | scripts/build/debug/400-ltrace.sh | 5 | ||||
-rw-r--r-- | scripts/build/debug/500-strace.sh | 7 |
5 files changed, 32 insertions, 25 deletions
diff --git a/scripts/build/debug/100-dmalloc.sh b/scripts/build/debug/100-dmalloc.sh index 46dd7289..463c4c46 100644 --- a/scripts/build/debug/100-dmalloc.sh +++ b/scripts/build/debug/100-dmalloc.sh @@ -40,19 +40,19 @@ do_debug_dmalloc_build() { LD="${CT_TARGET}-ld" \ AR="${CT_TARGET}-ar" \ + CT_DoExecLog ALL \ "${CT_SRC_DIR}/dmalloc-${CT_DMALLOC_VERSION}/configure" \ --prefix=/usr \ --build="${CT_BUILD}" \ --host="${CT_TARGET}" \ - ${extra_config} 2>&1 |CT_DoLog ALL + ${extra_config} CT_DoLog EXTRA "Building dmalloc" - make 2>&1 |CT_DoLog ALL + CT_DoExecLog ALL make 2>&1 |CT_DoLog ALL CT_DoLog EXTRA "Installing dmalloc" - make DESTDIR="${CT_SYSROOT_DIR}" installincs \ - installlib 2>&1 |CT_DoLog ALL - make DESTDIR="${CT_DEBUG_INSTALL_DIR}" installutil 2>&1 |CT_DoLog ALL + CT_DoExecLog ALL make DESTDIR="${CT_SYSROOT_DIR}" installincs installlib + CT_DoExecLog ALL make DESTDIR="${CT_DEBUG_INSTALL_DIR}" installutil CT_EndStep } diff --git a/scripts/build/debug/200-duma.sh b/scripts/build/debug/200-duma.sh index e1997965..7e23973f 100644 --- a/scripts/build/debug/200-duma.sh +++ b/scripts/build/debug/200-duma.sh @@ -43,15 +43,16 @@ do_debug_duma_build() { [ "${CT_DUMA_SO}" = "y" ] && libs="${libs} ${duma_so}" libs="${libs# }" CT_DoLog EXTRA "Building libraries '${libs}'" + CT_DoExecLog ALL \ make HOSTCC="${CT_CC_NATIVE}" \ HOSTCXX="${CT_CC_NATIVE}" \ CC="${CT_TARGET}-gcc" \ CXX="${CT_TARGET}-gcc" \ RANLIB="${CT_TARGET}-ranlib" \ DUMA_CPP="${DUMA_CPP}" \ - ${libs} 2>&1 |CT_DoLog ALL + ${libs} CT_DoLog EXTRA "Installing libraries '${libs}'" - install -m 644 ${libs} "${CT_SYSROOT_DIR}/usr/lib" 2>&1 |CT_DoLog ALL + CT_DoExecLog ALL install -m 644 ${libs} "${CT_SYSROOT_DIR}/usr/lib" if [ "${CT_DUMA_SO}" = "y" ]; then CT_DoLog EXTRA "Installing shared library link" ln -vsf ${duma_so} "${CT_SYSROOT_DIR}/usr/lib/libduma.so" 2>&1 |CT_DoLog ALL diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh index 791e68ca..7115c2de 100644 --- a/scripts/build/debug/300-gdb.sh +++ b/scripts/build/debug/300-gdb.sh @@ -71,19 +71,20 @@ do_debug_gdb_build() { CC="${CC_for_gdb}" \ LD="${LD_for_gdb}" \ + CT_DoExecLog ALL \ "${gdb_src_dir}/configure" \ --build=${CT_BUILD} \ --host=${CT_HOST} \ --target=${CT_TARGET} \ --prefix="${CT_PREFIX_DIR}" \ --with-build-sysroot="${CT_SYSROOT_DIR}" \ - ${cross_extra_config} 2>&1 |CT_DoLog ALL + ${cross_extra_config} CT_DoLog EXTRA "Building cross-gdb" - make ${PARALLELMFLAGS} 2>&1 |CT_DoLog ALL + CT_DoExecLog ALL make ${PARALLELMFLAGS} CT_DoLog EXTRA "Installing cross-gdb" - make install 2>&1 |CT_DoLog ALL + CT_DoExecLog ALL make install CT_EndStep fi @@ -100,6 +101,7 @@ do_debug_gdb_build() { [ "${CT_CC_LANG_CXX}" = "y" ] || ncurses_opts="${ncurses_opts} --without-cxx --without-cxx-binding" [ "${CT_CC_LANG_ADA}" = "y" ] || ncurses_opts="${ncurses_opts} --without-ada" + CT_DoExecLog ALL \ "${CT_SRC_DIR}/ncurses-${CT_NCURSES_VERSION}/configure" \ --build=${CT_BUILD} \ --host=${CT_TARGET} \ @@ -111,14 +113,14 @@ do_debug_gdb_build() { --without-sysmouse \ --without-progs \ --enable-termcap \ - ${ncurses_opts} 2>&1 |CT_DoLog ALL + ${ncurses_opts} CT_DoLog EXTRA "Building ncurses" - make ${PARALLELMFLAGS} 2>&1 |CT_DoLog ALL + CT_DoExecLog ALL make ${PARALLELMFLAGS} CT_DoLog EXTRA "Installing ncurses" - mkdir -p -v "${CT_SYSROOT_DIR}/usr/bin" 2>&1 |CT_DoLog ALL - make DESTDIR="${CT_SYSROOT_DIR}" install 2>&1 |CT_DoLog ALL + mkdir -p "${CT_SYSROOT_DIR}/usr/bin" + CT_DoExecLog ALL make DESTDIR="${CT_SYSROOT_DIR}" install CT_EndStep @@ -150,6 +152,7 @@ do_debug_gdb_build() { CC="${CC_for_gdb}" \ LD="${LD_for_gdb}" \ + CT_DoExecLog ALL \ "${gdb_src_dir}/configure" \ --build=${CT_BUILD} \ --host=${CT_TARGET} \ @@ -164,13 +167,13 @@ do_debug_gdb_build() { --disable-werror \ --without-included-gettext \ --without-develop \ - ${native_extra_config} 2>&1 |CT_DoLog ALL + ${native_extra_config} CT_DoLog EXTRA "Building native gdb" - make ${PARALLELMFLAGS} CC=${CT_TARGET}-${CT_CC} 2>&1 |CT_DoLog ALL + CT_DoExecLog ALL make ${PARALLELMFLAGS} CC=${CT_TARGET}-${CT_CC} CT_DoLog EXTRA "Installing native gdb" - make DESTDIR="${CT_DEBUG_INSTALL_DIR}" install 2>&1 |CT_DoLog ALL + CT_DoExecLog ALL make DESTDIR="${CT_DEBUG_INSTALL_DIR}" install # Building a native gdb also builds a gdbserver find "${CT_DEBUG_INSTALL_DIR}" -type f -name gdbserver -exec rm -fv {} + 2>&1 |CT_DoLog ALL @@ -200,6 +203,7 @@ do_debug_gdb_build() { gdbserver_extra_config="${extra_config}" LDFLAGS="${gdbserver_LDFLAGS}" \ + CT_DoExecLog ALL \ "${gdb_src_dir}/gdb/gdbserver/configure" \ --build=${CT_BUILD} \ --host=${CT_TARGET} \ @@ -216,13 +220,13 @@ do_debug_gdb_build() { --without-x \ --without-included-gettext \ --without-develop \ - ${gdbserver_extra_config} 2>&1 |CT_DoLog ALL + ${gdbserver_extra_config} CT_DoLog EXTRA "Building gdbserver" - make ${PARALLELMFLAGS} CC=${CT_TARGET}-${CT_CC} 2>&1 |CT_DoLog ALL + CT_DoExecLog ALL make ${PARALLELMFLAGS} CC=${CT_TARGET}-${CT_CC} CT_DoLog EXTRA "Installing gdbserver" - make DESTDIR="${CT_DEBUG_INSTALL_DIR}" install 2>&1 |CT_DoLog ALL + CT_DoExecLog ALL make DESTDIR="${CT_DEBUG_INSTALL_DIR}" install CT_EndStep fi diff --git a/scripts/build/debug/400-ltrace.sh b/scripts/build/debug/400-ltrace.sh index 12bc0928..12f610cf 100644 --- a/scripts/build/debug/400-ltrace.sh +++ b/scripts/build/debug/400-ltrace.sh @@ -27,16 +27,17 @@ do_debug_ltrace_build() { CT_DoLog EXTRA "Configuring ltrace" # CFLAGS="-I${CT_SYSROOT_DIR}/usr/include" \ # LDFLAGS="-L${CT_SYSROOT_DIR}/usr/include" \ + CT_DoExecLog ALL \ "${CT_SRC_DIR}/ltrace-${CT_LTRACE_VERSION}/configure" \ --build=${CT_BUILD} \ --host=${CT_TARGET} \ --prefix=/usr CT_DoLog EXTRA "Building ltrace" - make + CT_DoExecLog ALL make CT_DoLog EXTRA "Installing ltrace" - make DESTDIR="${CT_DEBUG_INSTALL_DIR}" install + CT_DoExecLog ALL make DESTDIR="${CT_DEBUG_INSTALL_DIR}" install CT_Popd CT_EndStep diff --git a/scripts/build/debug/500-strace.sh b/scripts/build/debug/500-strace.sh index 4bfef2ff..c5468754 100644 --- a/scripts/build/debug/500-strace.sh +++ b/scripts/build/debug/500-strace.sh @@ -21,16 +21,17 @@ do_debug_strace_build() { CT_Pushd "${CT_BUILD_DIR}/build-strace" CT_DoLog EXTRA "Configuring strace" + CT_DoExecLog ALL \ "${CT_SRC_DIR}/strace-${CT_STRACE_VERSION}/configure" \ --build=${CT_BUILD} \ --host=${CT_TARGET} \ - --prefix=/usr 2>&1 |CT_DoLog ALL + --prefix=/usr CT_DoLog EXTRA "Building strace" - make 2>&1 |CT_DoLog ALL + CT_DoExecLog ALL make CT_DoLog EXTRA "Installing strace" - make DESTDIR="${CT_DEBUG_INSTALL_DIR}" install 2>&1 |CT_DoLog ALL + CT_DoExecLog ALL make DESTDIR="${CT_DEBUG_INSTALL_DIR}" install CT_Popd CT_EndStep |