scripts/build/debug/500-strace.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu Oct 23 13:45:48 2008 +0000 (2008-10-23)
changeset 965 45ddf096def1
parent 711 c9bb5606a265
child 1112 c72aecd1a9ef
permissions -rw-r--r--
Push the calculation of the tuple's kernel part down to kernel's build scripts:
- update the kernel script's API with the function CT_DiKernelTupleValues
- update doc accordingly (also with the architecture change, missing in the previous commit)
- small clean-up in the main script, remove useless test

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