scripts/build/arch/mips.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 903 9fb0f81b4416
child 1815 33e1e077f47f
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(-)
yann@383
     1
# Compute IA-64-specific values
yann@383
     2
yann@964
     3
CT_DoArchTupleValues() {
yann@383
     4
    # The architecture part of the tuple:
yann@383
     5
    CT_TARGET_ARCH="${CT_ARCH}${target_endian_el}"
yann@499
     6
yann@499
     7
    # Override CFLAGS for endianness:
yann@499
     8
    case "${CT_ARCH_BE},${CT_ARCH_LE}" in
yann@499
     9
        y,) CT_ARCH_ENDIAN_CFLAG="-EB";;
yann@499
    10
        ,y) CT_ARCH_ENDIAN_CFLAG="-EL";;
yann@499
    11
    esac
yann@383
    12
}