arch/powerpc/functions
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed Oct 01 18:10:40 2008 +0000 (2008-10-01)
changeset 894 c444ce4b51b9
parent 520 9c6df3bf0c7a
permissions -rw-r--r--
Save the toolchain configuration to its own file, as an auto-extracting shell script:
- get rid of the 'extractconfig' action, it was cumbersome to use, and badly documented,
- introduce a skeleton for the config script,
- update auto-completion,
- document the config script.

/trunk/kconfig/kconfig.mk | 9 2 7 0 ++-------
/trunk/scripts/crosstool.sh | 6 5 1 0 +++++-
/trunk/docs/overview.txt | 21 9 12 0 +++++++++------------
/trunk/tools/toolchain-config.in | 8 8 0 0 ++++++++
/trunk/ct-ng.comp | 2 1 1 0 +-
5 files changed, 25 insertions(+), 21 deletions(-)
yann@520
     1
# Compute powerpc-specific values
yann@520
     2
yann@520
     3
CT_DoArchValues () {
yann@520
     4
    # The architecture part of the tuple:
yann@520
     5
    CT_TARGET_ARCH="${CT_ARCH}"
yann@520
     6
yann@520
     7
    # The kernel ARCH:
yann@520
     8
    CT_KERNEL_ARCH=powerpc
yann@792
     9
yann@792
    10
    # Add spe in the tuplet if needed
yann@792
    11
    case "${CT_LIBC},${CT_ARCH_POWERPC_SPE}" in
yann@792
    12
        glibc,|eglibc,)   CT_TARGET_SYS=gnu;;
yann@792
    13
        glibc,y|eglibc,y) CT_TARGET_SYS=gnuspe;;
yann@792
    14
    esac
yann@792
    15
yann@792
    16
    # Add extra flags for SPE if needed
yann@792
    17
    if [ "${CT_ARCH_POWERPC_SPE}" = "y" ]; then
yann@792
    18
        CT_ARCH_TARGET_CFLAGS="-mabi=spe -mspe"
yann@792
    19
        CT_ARCH_CC_CORE_EXTRA_CONFIG="--enable-e500_double"
yann@792
    20
        CT_ARCH_CC_EXTRA_CONFIG="--enable-e500_double"
yann@792
    21
    fi
yann@520
    22
}