diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-05-08 17:48:32 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-05-08 17:48:32 +0000 |
commit | 8a2b17ab5eb0b279354b431d6a83c39751a36d6a (patch) | |
tree | 8a4f95a0b71cdaf2086470b92d3703e1a9d3c654 /scripts/build/libc_uClibc.sh | |
parent | 5856bb8c5e8db06bce1e8bf5c31f1fc554e8c086 (diff) | |
download | crosstool-ng-8a2b17ab5eb0b279354b431d6a83c39751a36d6a.tar.gz crosstool-ng-8a2b17ab5eb0b279354b431d6a83c39751a36d6a.tar.bz2 crosstool-ng-8a2b17ab5eb0b279354b431d6a83c39751a36d6a.zip |
Huge fixes to glibc build, so that we can build at least (and at last):
- use ports addon even when installing headers,
- use optimisation (-O) when installing headers, to avoid unnecessary warnings (thanks Robert P. J. DAY for pointing this out!),
- lowest kernel version to use is only X.Y.Z, not X.Y.Z.T,
- a bit of preparations for NPTL (RSN I hope),
- fix fixing the linker scripts (changing the backup file is kind of useless and stupid);
Shut uClibc finish step: there really is nothing to do;
Add a patch for glibc-2.3.6 weak aliases handling on some archs (ARM and ALPHA at least);
Did not catch the make errors: fixed the pattern matching in scripts/functions;
Introduce a new log level, ALL:
- send components' build messages there,
- DEBUG log level is destined only for crosstool-NG debug messages,
- migrate sub-actions to use appropriate log levels;
Update the armeb-unknown-linux-gnu sample:
- it builds!
- uses gcc-4.0.4 and glibc-2.3.6,
- updated to latest config options set.
Diffstat (limited to 'scripts/build/libc_uClibc.sh')
-rw-r--r-- | scripts/build/libc_uClibc.sh | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/scripts/build/libc_uClibc.sh b/scripts/build/libc_uClibc.sh index 0981ce9b..1b8f99ec 100644 --- a/scripts/build/libc_uClibc.sh +++ b/scripts/build/libc_uClibc.sh @@ -68,13 +68,13 @@ do_libc_headers() { # use of the native build host tools, which we need at this # stage, as we don't have target tools yet. CT_DoLog EXTRA "Applying configuration" - CT_DoYes "" |make CROSS= PREFIX="${CT_SYSROOT_DIR}/" oldconfig 2>&1 |CT_DoLog DEBUG + CT_DoYes "" |make CROSS= PREFIX="${CT_SYSROOT_DIR}/" oldconfig 2>&1 |CT_DoLog ALL CT_DoLog EXTRA "Building headers" - make ${PARALLELMFLAGS} CROSS= PREFIX="${CT_SYSROOT_DIR}/" headers 2>&1 |CT_DoLog DEBUG + make ${PARALLELMFLAGS} CROSS= PREFIX="${CT_SYSROOT_DIR}/" headers 2>&1 |CT_DoLog ALL CT_DoLog EXTRA "Installing headers" - make CROSS= PREFIX="${CT_SYSROOT_DIR}/" install_dev 2>&1 |CT_DoLog DEBUG + make CROSS= PREFIX="${CT_SYSROOT_DIR}/" install_dev 2>&1 |CT_DoLog ALL CT_EndStep } @@ -104,7 +104,7 @@ do_libc() { CT_DoYes "" |make ${PARALLELMFLAGS} \ CROSS=${CT_TARGET}- \ PREFIX="${CT_SYSROOT_DIR}/" \ - oldconfig 2>&1 |CT_DoLog DEBUG + oldconfig 2>&1 |CT_DoLog ALL # We do _not_ want to strip anything for now, in case we specifically # asked for a debug toolchain, thus the STRIPTOOL= assignment @@ -113,7 +113,7 @@ do_libc() { CROSS=${CT_TARGET}- \ PREFIX="${CT_SYSROOT_DIR}/" \ STRIPTOOL=true \ - all 2>&1 |CT_DoLog DEBUG + all 2>&1 |CT_DoLog ALL # YEM-FIXME: we want to install libraries in $SYSROOT/lib, but we don't want # to install headers in $SYSROOT/include, thus making only install_runtime. @@ -127,17 +127,14 @@ do_libc() { make CROSS=${CT_TARGET}- \ PREFIX="${CT_SYSROOT_DIR}/" \ STRIPTOOL=true \ - install 2>&1 |CT_DoLog DEBUG + install 2>&1 |CT_DoLog ALL CT_EndStep } # This function is used to install those components needing the final C compiler do_libc_finish() { - CT_DoStep INFO "Finishing C library" - # uClibc has nothing to finish - CT_DoLog EXTRA "uClibc has nothing to finish" - CT_EndStep + : } # Initialises the .config file to sensible values |