scripts/build/debug.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Sep 14 16:21:07 2008 +0000 (2008-09-14)
changeset 850 ef8549b58b6f
parent 479 05c62432ec19
child 916 68af6b83ff7e
permissions -rw-r--r--
Introduce a new EXPERIMENTAL feature: BARE_METAL.
This should ultimately llow to build bare-metal compilers, for targets that have no kernel and no C library.
Move the C library build script to their own sub-directory; introduce an empty build script for bare-metal.
Move the compiler build script to its own sub-directory.
Move the kernel build script to its own sub-directory; introduce an empty build script for bare-metal.
Update the ARM target tuples to enable bare-metal targets.
Add two ARM bare-metal samples.
Add latest Linux kernel versions.

/trunk/scripts/build/kernel/none.sh | 77 6 71 0 +----
/trunk/scripts/build/cc/gcc.sh | 58 41 17 0 ++-
/trunk/scripts/build/libc/none.sh | 513 9 504 0 +-----------------------------
/trunk/scripts/crosstool.sh | 17 9 8 0 +
/trunk/scripts/functions | 6 4 2 0 +
/trunk/scripts/showSamples.sh | 6 3 3 0
/trunk/samples/arm-unknown-elf/crosstool.config | 225 225 0 0 +++++++++++++
/trunk/samples/arm-unknown-eabi/crosstool.config | 223 223 0 0 +++++++++++++
/trunk/config/kernel/linux_headers_install.in | 64 27 37 0 ++--
/trunk/config/kernel.in | 9 8 1 0 +
/trunk/config/toolchain.in | 1 1 0 0 +
/trunk/config/cc/gcc.in | 3 3 0 0 +
/trunk/config/debug/dmalloc.in | 1 1 0 0 +
/trunk/config/debug/gdb.in | 4 3 1 0 +
/trunk/config/debug/strace.in | 1 1 0 0 +
/trunk/config/debug/duma.in | 1 1 0 0 +
/trunk/config/cc.in | 8 8 0 0 +
/trunk/config/target.in | 13 13 0 0 +
/trunk/config/binutils.in | 1 1 0 0 +
/trunk/config/gmp_mpfr.in | 1 1 0 0 +
/trunk/config/libc.in | 17 11 6 0 +
/trunk/arch/arm/functions | 3 1 2 0 -
22 files changed, 600 insertions(+), 652 deletions(-)
yann@96
     1
# Wrapper to build the debug facilities
yann@96
     2
yann@96
     3
# List all debug facilities, and parse their scripts
yann@96
     4
CT_DEBUG_FACILITY_LIST=
yann@182
     5
for f in "${CT_LIB_DIR}/scripts/build/debug/"*.sh; do
yann@96
     6
    is_enabled=
yann@96
     7
    . "${f}"
yann@483
     8
    f=$(basename "${f}" .sh)
yann@96
     9
    if [ "${is_enabled}" = "y" ]; then
yann@483
    10
        CT_DEBUG_FACILITY_LIST="${CT_DEBUG_FACILITY_LIST} ${f#???-}"
yann@96
    11
    fi
yann@96
    12
done
yann@96
    13
yann@96
    14
# Download the debug facilities
yann@96
    15
do_debug_get() {
yann@96
    16
    for f in ${CT_DEBUG_FACILITY_LIST}; do
yann@96
    17
        do_debug_${f}_get
yann@96
    18
    done
yann@96
    19
}
yann@96
    20
yann@96
    21
# Extract and patch the debug facilities
yann@96
    22
do_debug_extract() {
yann@96
    23
    for f in ${CT_DEBUG_FACILITY_LIST}; do
yann@96
    24
        do_debug_${f}_extract
yann@96
    25
    done
yann@96
    26
}
yann@96
    27
yann@96
    28
# Build the debug facilities
yann@96
    29
do_debug() {
yann@96
    30
    for f in ${CT_DEBUG_FACILITY_LIST}; do
yann@96
    31
        do_debug_${f}_build
yann@96
    32
    done
yann@96
    33
}
yann@96
    34