scripts/build/debug/500-strace.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed Oct 01 18:10:40 2008 +0000 (2008-10-01)
changeset 894 c444ce4b51b9
parent 669 ca740b4c4262
child 916 68af6b83ff7e
permissions -rw-r--r--
Save the toolchain configuration to its own file, as an auto-extracting shell script:
- get rid of the 'extractconfig' action, it was cumbersome to use, and badly documented,
- introduce a skeleton for the config script,
- update auto-completion,
- document the config script.

/trunk/kconfig/kconfig.mk | 9 2 7 0 ++-------
/trunk/scripts/crosstool.sh | 6 5 1 0 +++++-
/trunk/docs/overview.txt | 21 9 12 0 +++++++++------------
/trunk/tools/toolchain-config.in | 8 8 0 0 ++++++++
/trunk/ct-ng.comp | 2 1 1 0 +-
5 files changed, 25 insertions(+), 21 deletions(-)
     1 # Build script for strace
     2 
     3 is_enabled="${CT_STRACE}"
     4 
     5 do_print_filename() {
     6     [ "${CT_STRACE}" = "y" ] || return 0
     7     echo "strace-${CT_STRACE_VERSION}"
     8 }
     9 
    10 do_debug_strace_get() {
    11     CT_GetFile "strace-${CT_STRACE_VERSION}" http://mesh.dl.sourceforge.net/sourceforge/strace/
    12     # Downloading from sourceforge leaves garbage, cleanup
    13     CT_Pushd "${CT_TARBALLS_DIR}"
    14     rm -f showfiles.php\?group_id\=*
    15     CT_Popd
    16 }
    17 
    18 do_debug_strace_extract() {
    19     CT_ExtractAndPatch "strace-${CT_STRACE_VERSION}"
    20 }
    21 
    22 do_debug_strace_build() {
    23     CT_DoStep INFO "Installing strace"
    24     mkdir -p "${CT_BUILD_DIR}/build-strace"
    25     CT_Pushd "${CT_BUILD_DIR}/build-strace"
    26 
    27     CT_DoLog EXTRA "Configuring strace"
    28     CT_DoExecLog ALL                                        \
    29     "${CT_SRC_DIR}/strace-${CT_STRACE_VERSION}/configure"   \
    30         --build=${CT_BUILD}                                 \
    31         --host=${CT_TARGET}                                 \
    32         --prefix=/usr
    33 
    34     CT_DoLog EXTRA "Building strace"
    35     CT_DoExecLog ALL make
    36 
    37     CT_DoLog EXTRA "Installing strace"
    38     CT_DoExecLog ALL make DESTDIR="${CT_DEBUG_INSTALL_DIR}" install
    39 
    40     CT_Popd
    41     CT_EndStep
    42 }
    43