scripts/build/debug/500-strace.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed Oct 15 21:29:56 2008 +0000 (2008-10-15)
changeset 940 f0f9ba3f98f2
parent 711 c9bb5606a265
child 1112 c72aecd1a9ef
permissions -rw-r--r--
Cheesy kconfig stuff:
- silent/quiet/verbose build:
- ct-ng by default only prints quit messages, such as "CC xxx",
- if using V=0, nothing is printed,
- if using V=1, the full command lines are printed,
- other values are indeterminate,
- should help in debugging the kconfig stuff;
- complete kconfig/{,m}conf generation:
- fully dynamic dependencies on source files,
- compilation of .c into .o, then linking (instead of direct linking),
- VPATH usage when not --local;
Typo + a coment moved.

/trunk/kconfig/kconfig.mk | 140 87 53 0 +++++++++++++++++++++++++++++++++--------------------
/trunk/tools/tools.mk | 12 6 6 0 ++--
/trunk/steps.mk | 6 3 3 0 +-
/trunk/samples/samples.mk | 30 15 15 0 +++++-----
/trunk/ct-ng.in | 40 28 12 0 +++++++++++----
5 files changed, 139 insertions(+), 89 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