.hgignore
author Bryan Hundven <bryanhundven@gmail.com>
Sun Jun 26 03:26:54 2011 -0700 (2011-06-26)
changeset 2515 364b06df9e3a
parent 2468 90595d1c1017
child 2621 00853d565edf
permissions -rw-r--r--
glibc: Refactor startfiles/headers into do_libc_backend()

Refactor the contents of 'do_libc_start_files()' and 'do_libc()' into a
parameterized 'do_libc_backend()'. 'do_libc_start_files()' and 'do_libc()'
call 'do_libc_backend()' with either 'libc_mode=startfiles' or
'libc_mode=final' (respectively) so that the startfiles/headers and
the final libc builds are configured and built with the same options.

One example of where this is needed is when building a mips toolchain.
Previously, if you were building an n32 toolchain, you wouldn't have
noticed an issue, because if '-mabi' is not in CFLAGS, n32 is the
default:

http://sourceware.org/git/?p=glibc-ports.git;a=blob;f=sysdeps/mips/preconfigure;hb=HEAD

But when trying to build an o32 or n64 toolchain the build would
have failed. This is because (e)glibc expects "-mabi={o32,n32,n64}" to be
in CFLAGS, but was not previously provided in 'do_libc_start_files()'.
The build failure would happen in the shared-core gcc when it tries to
configure an n64 or o32 gcc with an n32 libc.

A simpler solution would have been to just add TARGET_CFLAGS to configure
in 'do_libc_start_files()', but this way makes configure and make
consistent for both steps.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
yann@1412
     1
syntax: glob
yann@1412
     2
yann@1412
     3
# Generated files
yann@1412
     4
Makefile
yann@1412
     5
ct-ng
yann@1412
     6
docs/ct-ng.1
yann@1412
     7
docs/ct-ng.1.gz
yann@1412
     8
paths.mk
yann@1412
     9
scripts/crosstool-NG.sh
yann@1412
    10
scripts/saveSample.sh
yann@1412
    11
scripts/showTuple.sh
yann@1412
    12
kconfig/conf
yann@2454
    13
kconfig/?conf
yann@1412
    14
kconfig/**.o
yann@1412
    15
kconfig/**.dep
yann@2481
    16
config/configure.in
yann@1412
    17
config.gen/
yann@1412
    18
.config
yann@2468
    19
.config.2
yann@2133
    20
yann@2133
    21
# Temporaries
yann@2133
    22
.*.swp
yann@2339
    23
build.log
yann@1412
    24
.config.old
yann@2133
    25
yann@2133
    26
# This is the place where toolchains are built
yann@2133
    27
.build/
yann@2133
    28
# .. and the legacy location
yann@1412
    29
targets/