Get rid of all `command` (which is a bashism), and replace them with $(command), which is POSIX.
Get rid of all remaining \"text\" in log messages and replace them with 'text'.
Optimise the progress bar, should go un-noticed at log level DEBUG and below.
/trunk/scripts/build/tools/200-sstrip.sh | 16 8 8 0 ++--
/trunk/scripts/build/libc_glibc.sh | 50 25 25 0 +++++++-------
/trunk/scripts/build/libc_uClibc.sh | 4 2 2 0
/trunk/scripts/build/debug/100-dmalloc.sh | 2 1 1 0
/trunk/scripts/build/debug/400-ltrace.sh | 2 1 1 0
/trunk/scripts/build/debug/300-gdb.sh | 8 4 4 0 +-
/trunk/scripts/build/debug/200-duma.sh | 6 3 3 0 +-
/trunk/scripts/build/kernel_linux.sh | 30 15 15 0 ++++----
/trunk/scripts/build/cc_gcc.sh | 14 7 7 0 ++--
/trunk/scripts/crosstool.sh | 54 27 27 0 ++++++++--------
/trunk/scripts/functions | 128 64 64 0 ++++++++++++++++++------------------
/trunk/scripts/saveSample.sh | 4 2 2 0
/trunk/scripts/tarball.sh.broken | 20 10 10 0 +++---
/trunk/tools/addToolVersion.sh | 8 4 4 0 +-
/trunk/tools/populate.in | 18 9 9 0 ++--
15 files changed, 182 insertions(+), 182 deletions(-)
1 diff -durN gcc-4.2.1.orig/gcc/config/arm/linux-elf.h gcc-4.2.1/gcc/config/arm/linux-elf.h
2 --- gcc-4.2.1.orig/gcc/config/arm/linux-elf.h 2006-02-17 00:29:10.000000000 +0100
3 +++ gcc-4.2.1/gcc/config/arm/linux-elf.h 2007-08-03 20:36:43.000000000 +0200
6 #define TARGET_VERSION fputs (" (ARM GNU/Linux with ELF)", stderr);
9 + * 'config.gcc' defines TARGET_BIG_ENDIAN_DEFAULT as 1 for arm*b-*
10 + * (big endian) configurations.
12 +#if TARGET_BIG_ENDIAN_DEFAULT
13 +#define TARGET_ENDIAN_DEFAULT MASK_BIG_END
14 +#define TARGET_ENDIAN_OPTION "mbig-endian"
15 +#define TARGET_LINKER_EMULATION "armelfb_linux"
17 +#define TARGET_ENDIAN_DEFAULT 0
18 +#define TARGET_ENDIAN_OPTION "mlittle-endian"
19 +#define TARGET_LINKER_EMULATION "armelf_linux"
22 #undef TARGET_DEFAULT_FLOAT_ABI
23 #define TARGET_DEFAULT_FLOAT_ABI ARM_FLOAT_ABI_HARD
26 -#define TARGET_DEFAULT (0)
27 +#define TARGET_DEFAULT (TARGET_ENDIAN_DEFAULT)
29 #define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm6
31 -#define SUBTARGET_EXTRA_LINK_SPEC " -m armelf_linux -p"
32 +#define SUBTARGET_EXTRA_LINK_SPEC " -m " TARGET_LINKER_EMULATION " -p"
34 #undef MULTILIB_DEFAULTS
35 #define MULTILIB_DEFAULTS \
36 - { "marm", "mlittle-endian", "mhard-float", "mno-thumb-interwork" }
37 + { "marm", TARGET_ENDIAN_OPTION, "mhard-float", "mno-thumb-interwork" }
39 /* Now we define the strings used to build the spec file. */
42 %{rdynamic:-export-dynamic} \
43 %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER "} \
45 - %{mbig-endian:-EB}" \
46 + %{mbig-endian:-EB} %{mlittle-endian:-EL}" \
47 SUBTARGET_EXTRA_LINK_SPEC
50 diff -durN gcc-4.2.1.orig/gcc/config.gcc gcc-4.2.1/gcc/config.gcc
51 --- gcc-4.2.1.orig/gcc/config.gcc 2007-08-03 20:29:52.000000000 +0200
52 +++ gcc-4.2.1/gcc/config.gcc 2007-08-03 20:36:43.000000000 +0200
54 tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h"
55 tmake_file="${tmake_file} t-linux arm/t-arm"
58 + tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"
63 tm_file="$tm_file arm/bpabi.h arm/linux-eabi.h"
64 tmake_file="$tmake_file arm/t-arm-elf arm/t-bpabi arm/t-linux-eabi"