tools/extractConfig.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue May 08 17:48:32 2007 +0000 (2007-05-08)
changeset 78 c3868084d81a
child 197 9383bf4a2e2e
permissions -rwxr-xr-x
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.
yann@45
     1
#!/bin/sh
yann@45
     2
yann@45
     3
# This scripts extracts a crosstool-ng configuration from the log file
yann@45
     4
# of a toolchain build with crosstool-ng.
yann@45
     5
yann@45
     6
# Usage: $0 <logfile>
yann@45
     7
yann@45
     8
cat "$1" |awk '
yann@45
     9
BEGIN {
yann@45
    10
  dump = 0;
yann@45
    11
}
yann@45
    12
yann@45
    13
$0~/Dumping crosstool-NG configuration: done in.+s$/ {
yann@45
    14
  dump = 0;
yann@45
    15
}
yann@45
    16
yann@45
    17
dump == 1 { $1 = "" }
yann@45
    18
dump == 1
yann@45
    19
yann@45
    20
$0~/Dumping crosstool-NG configuration$/ {
yann@45
    21
  dump = 1;
yann@45
    22
}
yann@45
    23
' |cut -d ' ' -f 2-