scripts/build/debug/strace.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Feb 17 22:08:06 2008 +0000 (2008-02-17)
changeset 431 8bde4c6ea47a
parent 239 988e9b7f70eb
permissions -rw-r--r--
Robert P. J. DAY says:

apparently, the patchset for gcc 4.2.1 applies properly to the
source for gcc 4.2.2 and gcc 4.2.3. so, if you want, you can simply
add support for those last two just by augmenting menuconfig and
adding a couple symlinks for those two directories. seems like a
cheap way to add a couple new versions.
yann@239
     1
# Build script for strace
yann@239
     2
yann@239
     3
is_enabled="${CT_STRACE}"
yann@239
     4
yann@239
     5
do_print_filename() {
yann@239
     6
    [ "${CT_STRACE}" = "y" ] || return 0
yann@239
     7
    echo "strace-${CT_STRACE_VERSION}"
yann@239
     8
}
yann@239
     9
yann@239
    10
do_debug_strace_get() {
yann@239
    11
    CT_GetFile "strace-${CT_STRACE_VERSION}" http://mesh.dl.sourceforge.net/sourceforge/strace/
yann@239
    12
}
yann@239
    13
yann@239
    14
do_debug_strace_extract() {
yann@239
    15
    CT_ExtractAndPatch "strace-${CT_STRACE_VERSION}"
yann@239
    16
}
yann@239
    17
yann@239
    18
do_debug_strace_build() {
yann@239
    19
    CT_DoStep INFO "Installing strace"
yann@239
    20
    mkdir -p "${CT_BUILD_DIR}/build-strace"
yann@239
    21
    CT_Pushd "${CT_BUILD_DIR}/build-strace"
yann@239
    22
yann@239
    23
    CT_DoLog EXTRA "Configuring strace"
yann@239
    24
    "${CT_SRC_DIR}/strace-${CT_STRACE_VERSION}/configure"   \
yann@239
    25
        --build=${CT_BUILD}                                 \
yann@239
    26
        --host=${CT_TARGET}                                 \
yann@255
    27
        --prefix=/usr                                       2>&1 |CT_DoLog ALL
yann@239
    28
yann@239
    29
    CT_DoLog EXTRA "Building strace"
yann@255
    30
    make    2>&1 |CT_DoLog ALL
yann@239
    31
yann@239
    32
    CT_DoLog EXTRA "Installing strace"
yann@255
    33
    make DESTDIR="${CT_DEBUG_INSTALL_DIR}" install  2>&1 |CT_DoLog ALL
yann@239
    34
yann@239
    35
    CT_Popd
yann@239
    36
    CT_EndStep
yann@239
    37
}
yann@239
    38