samples/powerpc-e500v2-linux-gnuspe/reported.by
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Jun 13 23:45:29 2010 +0200 (2010-06-13)
changeset 1982 63cee3d5ab85
parent 935 e175e3538310
child 2139 983823b3b569
permissions -rw-r--r--
libc/newlib: build in the 'start files' pass

A few facts:
- building the C library requires a proper core compiler
- core compiler is issued from one of the core passes
- the C library is required to build libstdc++
- newlib is only built for baremetal
- in bare metal, the final compiler is issued from one of the core passes

So we need to build the C library between core pass 1 and core pass 2.
The only place is eithe libc_headers() or libc_start_files(). The most
pertinent seems to be libc_start_files().

So we build newlib from libc_start_files(), and leave libc() empty.
yann@930
     1
reporter_name="Nate CASE"
yann@930
     2
reporter_url="http://sourceware.org/ml/crossgcc/2008-10/msg00016.html"
yann@935
     3
reporter_comment="This is a sample config file for Freescale e500v2 processors (e.g.,
yann@935
     4
MPC8548, MPC8572).  It uses eglibc (for e500/SPE patches) and a recent
yann@935
     5
gcc (4.3.1, for e500v2 DPFP support) and will generate appropriate
yann@935
     6
dual-precision floating point instructions by default.
yann@935
     7
yann@935
     8
Note: If building a Linux kernel with this toolchain, you will want to
yann@935
     9
make sure -mno-spe AND -mspe=no are passed to gcc to prevent SPE
yann@935
    10
ABI/instructions from getting into the kernel (which is currently
yann@935
    11
unsupported).  At this time, the kernel build system only passes
yann@1076
    12
-mno-spe by default (this should be fixed soon hopefully)."