scripts/build/arch/avr32.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Oct 14 22:44:24 2011 +0200 (2011-10-14)
changeset 2717 13df2720b374
child 3169 9d0b37f08a10
permissions -rw-r--r--
scripts: check host features with host compiler

Currently, we check host feature in ./configure. This works only for
cross toolchains, but not for canadian toolchains. ./configure has
absolutely no way to know what the host for the toolchain will be;
only the build scripts know.

So, move the headers & libraries checks from ./configure to the build
scripts, early enough in the build, but not before we know the host
compiler and other tools.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
mgl@1371
     1
# Compute AVR32-specific values
mgl@1371
     2
mgl@1371
     3
CT_DoArchTupleValues() {
mgl@1371
     4
    # The architecture part of the tuple:
mgl@1371
     5
    CT_TARGET_ARCH="${CT_ARCH}"
mgl@1371
     6
mgl@1371
     7
    # gcc ./configure flags
mgl@1371
     8
    CT_ARCH_WITH_ARCH=
mgl@1371
     9
    CT_ARCH_WITH_ABI=
mgl@1371
    10
    CT_ARCH_WITH_CPU=
mgl@1371
    11
    CT_ARCH_WITH_TUNE=
mgl@1371
    12
    CT_ARCH_WITH_FPU=
mgl@1371
    13
    CT_ARCH_WITH_FLOAT=
mgl@1371
    14
    CT_TARGET_SYS=none
mgl@1371
    15
mgl@1371
    16
}