config/arch/powerpc.in.2
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Jul 17 17:54:21 2011 +0200 (2011-07-17)
changeset 2888 dd71df95903a
parent 2484 d1a8c2ae7946
permissions -rw-r--r--
cc/gcc: pass the companion libs prefix to cc_core

In case of canadian-cross, the companion libraries are not the same for
the core cc (they run on 'build') as they are for the final cc (they run
on 'host').

Prepare for this differentiation (coming later), while retaining the
current behavior (to use the same compblibs).

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
yann@520
     1
# powerpc specific configuration file
yann@628
     2
mgherzan@2675
     3
config ARCH_powerpc_ABI
mgherzan@2675
     4
    string
mgherzan@2675
     5
    default ""     if ARCH_powerpc_ABI_DEFAULT
mgherzan@2675
     6
    default "eabi" if ARCH_powerpc_ABI_EABI
mgherzan@2675
     7
    default "spe"  if ARCH_powerpc_ABI_SPE
mgherzan@2675
     8
mgherzan@2675
     9
choice
yann@1634
    10
    bool
mgherzan@2675
    11
    prompt "ABI"
mgherzan@2675
    12
    default ARCH_powerpc_ABI_DEFAULT
mgherzan@2675
    13
mgherzan@2675
    14
config ARCH_powerpc_ABI_DEFAULT
mgherzan@2675
    15
    bool
mgherzan@2675
    16
    prompt "default"
mgherzan@2675
    17
    help
mgherzan@2675
    18
      The default ABI (System V.4).
mgherzan@2675
    19
mgherzan@2675
    20
config ARCH_powerpc_ABI_EABI
mgherzan@2675
    21
    bool
mgherzan@2675
    22
    prompt "EABI"
mgherzan@2675
    23
    depends on BARE_METAL
mgherzan@2675
    24
    help
mgherzan@2675
    25
      The Embedded ABI (stack alignment of 8 bytes, etc).
mgherzan@2675
    26
mgherzan@2675
    27
config ARCH_powerpc_ABI_SPE
mgherzan@2675
    28
    bool
mgherzan@2675
    29
    prompt "SPE"
yann@1634
    30
    help
yann@1634
    31
      Add support for the Signal Processing Engine.  This will set up
yann@1634
    32
      the toolchain so that it supports the SPE ABI extensions. This
yann@1634
    33
      mainly targets Freescale e500 processors.
yann@1634
    34
      
yann@1634
    35
      Setting this option will append "spe" to the end of your target
yann@1634
    36
      tuple name (e.g., powerpc-e500v2-linux-gnuspe) so that the gcc
yann@2467
    37
      configure/build system will know to include SPE ABI support. It
yann@2467
    38
      will also automatically add "-mabi=spe -mspe" to your TARGET_CFLAGS,
yann@2467
    39
      and "--enable-e500_double" to your CC_EXTRA_CONFIG_ARRAY, so you
yann@2467
    40
      do not need to explicitly add them.
mgherzan@2675
    41
mgherzan@2675
    42
endchoice