summaryrefslogtreecommitdiff
path: root/scripts/build/libc_uClibc.sh
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-05-08 17:48:32 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-05-08 17:48:32 (GMT)
commit8a2b17ab5eb0b279354b431d6a83c39751a36d6a (patch)
tree8a4f95a0b71cdaf2086470b92d3703e1a9d3c654 /scripts/build/libc_uClibc.sh
parent5856bb8c5e8db06bce1e8bf5c31f1fc554e8c086 (diff)
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.sh17
1 files changed, 7 insertions, 10 deletions
diff --git a/scripts/build/libc_uClibc.sh b/scripts/build/libc_uClibc.sh
index 0981ce9..1b8f99e 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