config/arch/powerpc.in.2
author Matthieu Crapet <mcrapet@gmail.com>
Wed Jun 06 12:03:12 2012 +0200 (2012-06-06)
changeset 2991 252ade1e9e17
parent 2484 d1a8c2ae7946
permissions -rw-r--r--
libc/eglibc: fix missing LIBC_TRY_CC_OPTION definition (eglibc 2.15)

Upstream SVN is currently broken:
http://www.eglibc.org/svn/branches/eglibc-2_15/libc/

LIBC_TRY_CC_OPTION macro is not defined in aclocal.m4.
This patch fix the configure script.

Once upstream branch will be fixed this patch could be reverted.

Related patch (committed to eglibc trunk):
Use autoconf macro for testing compiler options with empty input
http://sourceware.org/ml/libc-alpha/2012-03/msg00816.html

Signed-off-by: Matthieu Crapet <mcrapet@gmail.com>

diff -r 1f6c8e4b2b92 -r d10afc5bcc25
patches/eglibc/2_15/110-aclocal-LIBC_TRY_CC_OPTION.patch
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