scripts/build/debug.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu May 17 16:22:51 2007 +0000 (2007-05-17)
changeset 96 aa1a9fbd6eb8
child 182 223c84ec2d90
permissions -rw-r--r--
Debug facilities:
- add a framework to easily add new ones
- add gdb as a first debug facility
- add patches for gdb
After the kernel checked its installed headers, clean up the mess of .checked.* files.
Reorder scripts/crosstool.sh:
- dump the configuration early
- renice early
- get info about build system early, when setting up the environment
- when in cross or native, the host tools are those of the build system, and only in this case
- elapsed time calculations moved to scripts/functions
Remove handling of the color: it's gone once and for all.
Update tools/addToolVersion.sh:
- handle debug facilities
- commonalise some code
- remove dead tools (cygwin, tcc)
Point to my address for bug reports.
     1 # Wrapper to build the debug facilities
     2 
     3 # List all debug facilities, and parse their scripts
     4 CT_DEBUG_FACILITY_LIST=
     5 for f in "${CT_TOP_DIR}/scripts/build/debug/"*.sh; do
     6     is_enabled=
     7     . "${f}"
     8     f=`basename "${f}" .sh`
     9     if [ "${is_enabled}" = "y" ]; then
    10         CT_DEBUG_FACILITY_LIST="${CT_DEBUG_FACILITY_LIST} ${f}"
    11     fi
    12 done
    13 
    14 # Download the debug facilities
    15 do_debug_get() {
    16     for f in ${CT_DEBUG_FACILITY_LIST}; do
    17         do_debug_${f}_get
    18     done
    19 }
    20 
    21 # Extract and patch the debug facilities
    22 do_debug_extract() {
    23     for f in ${CT_DEBUG_FACILITY_LIST}; do
    24         do_debug_${f}_extract
    25     done
    26 }
    27 
    28 # Build the debug facilities
    29 do_debug() {
    30     for f in ${CT_DEBUG_FACILITY_LIST}; do
    31         do_debug_${f}_build
    32     done
    33 }
    34