config/libc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Oct 14 17:42:10 2008 +0000 (2008-10-14)
changeset 929 7c958fb04f28
parent 852 c17bb66e2aa5
child 1178 41a84f7d3b4f
permissions -rw-r--r--
Sample config for e500v2 toolchain

On Tuesday 14 October 2008 17:05:31 Nate Case wrote:
> This is a sample config file for Freescale e500v2 processors (e.g.,
> MPC8548, MPC8572). It uses eglibc (for e500/SPE patches) and a recent
> gcc (4.3.1, for e500v2 DPFP support) and will generate appropriate
> dual-precision floating point instructions by default.
>
> Note: If building a Linux kernel with this toolchain, you will want to
> make sure -mno-spe AND -mspe=no are passed to gcc to prevent SPE
> ABI/instructions from getting into the kernel (which is currently
> unsupported). At this time, the kernel build system only passes
> -mno-spe by default (this should be fixed soon hopefully).
>
> A binutils snapshot is used to fix a bug present in 2.18 preventing
> U-Boot from being compiled (CodeSourcery issue #2297: internal.h
> (ELF_IS_SECTION_IN_SEGMENT): Adjust to cope with segments at the end of
> memory).

Obsoletes the powerpc-unknown-linux-gnuspe sample, so remove it.

/trunk/samples/powerpc-e500v2-linux-gnuspe/crosstool.config | 307 307 0 0 +++++++++++++++++++
1 file changed, 307 insertions(+)
yann@1
     1
# C library options
yann@1
     2
yann@850
     3
config LIBC
yann@850
     4
    string
yann@922
     5
    default "none" if BARE_METAL
yann@850
     6
yann@850
     7
if ! BARE_METAL
yann@850
     8
yann@1
     9
menu "C-library"
yann@1
    10
yann@852
    11
config LIBC_VERSION
yann@852
    12
    string
yann@852
    13
    help
yann@852
    14
      Enter the date of the snapshot you want to use in the form: YYYYMMDD
yann@852
    15
      where YYYY is the 4-digit year, MM the 2-digit month and DD the 2-digit
yann@852
    16
      day in the month.
yann@852
    17
      
yann@852
    18
      Please note:
yann@852
    19
      - glibc has snapshots done every monday, and only the last ten are kept.
yann@852
    20
      - uClibc has daily snapshots, and only the last 30-or-so are kept.
yann@852
    21
      
yann@852
    22
      So if you want to be able to re-build your toolchain later, you will
yann@852
    23
      have to save your C library tarball by yourself.
yann@852
    24
yann@922
    25
source config.gen/libc.in
yann@1
    26
yann@852
    27
comment "Common C library options"
yann@1
    28
yann@95
    29
config LIBC_SUPPORT_NPTL
yann@95
    30
    bool
yann@95
    31
    default n
yann@95
    32
yann@95
    33
config LIBC_SUPPORT_LINUXTHREADS
yann@95
    34
    bool
yann@95
    35
    default n
yann@95
    36
yann@852
    37
config THREADS
yann@852
    38
    string
yann@852
    39
    default "nptl"          if THREADS_NPTL
yann@852
    40
    default "linuxthreads"  if THREADS_LINUXTHREADS
yann@852
    41
    default "none"          if THREADS_NONE
yann@852
    42
yann@802
    43
choice
yann@802
    44
    bool
yann@802
    45
    prompt "Threading implementation to use:"
yann@802
    46
    default THREADS_NPTL           if LIBC_SUPPORT_NPTL
yann@802
    47
    default THREADS_LINUXTHREADS   if LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
yann@802
    48
    default THREADS_NONE           if ! LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
yann@1
    49
yann@802
    50
config THREADS_NPTL
yann@802
    51
    bool
yann@802
    52
    prompt "nptl"
yann@802
    53
    depends on LIBC_SUPPORT_NPTL
yann@787
    54
yann@802
    55
config THREADS_LINUXTHREADS
yann@802
    56
    bool
yann@802
    57
    prompt "linuxthreads"
yann@802
    58
    depends on LIBC_SUPPORT_LINUXTHREADS
yann@802
    59
yann@802
    60
config THREADS_NONE
yann@802
    61
    bool
yann@802
    62
    prompt "none"
yann@802
    63
yann@802
    64
endchoice
yann@802
    65
yann@852
    66
# Hack: mconf does not allow to include a file multiple times,
yann@852
    67
# so include glibc and eglibc common options from here, rather
yann@852
    68
# than from each config files.
yann@922
    69
if LIBC_glibc || LIBC_eglibc
yann@922
    70
source config/libc/glibc-eglibc.in-common
yann@852
    71
endif
yann@710
    72
yann@1
    73
endmenu
yann@850
    74
yann@850
    75
endif # ! BARE_METAL