Merge first shot from the MIPS branch.
1.1 --- a/config/target.in Wed Apr 18 17:35:04 2007 +0000
1.2 +++ b/config/target.in Sat Apr 21 17:31:51 2007 +0000
1.3 @@ -59,6 +59,19 @@
1.4
1.5 comment "Target optimisations"
1.6
1.7 +config ARCH_ABI
1.8 + string
1.9 + prompt "Generate code for the specific ABI"
1.10 + default ""
1.11 + help
1.12 + Generate code for the given ABI.
1.13 +
1.14 + Pick a value from the gcc manual for your choosen gcc version and your
1.15 + target CPU.
1.16 +
1.17 + Leave blank if you don't know, or if your target architecutre does not
1.18 + offer this option.
1.19 +
1.20 config ARCH_CPU
1.21 string
1.22 prompt "Emit assembly for CPU"
2.1 --- a/scripts/build/cc_core_gcc.sh Wed Apr 18 17:35:04 2007 +0000
2.2 +++ b/scripts/build/cc_core_gcc.sh Sat Apr 21 17:31:51 2007 +0000
2.3 @@ -16,6 +16,7 @@
2.4
2.5 extra_config=""
2.6 [ "${CT_ARCH_FLOAT_SW}" = "y" ] && extra_config="${extra_config} --with-float=soft"
2.7 + [ -n "${CT_ARCH_ABI}" ] && extra_config="${extra_config} --with-abi=${CT_ARCH_ABI}"
2.8 [ -n "${CT_ARCH_CPU}" ] && extra_config="${extra_config} --with-cpu=${CT_ARCH_CPU}"
2.9 [ -n "${CT_ARCH_TUNE}" ] && extra_config="${extra_config} --with-tune=${CT_ARCH_TUNE}"
2.10 [ -n "${CT_ARCH_ARCH}" ] && extra_config="${extra_config} --with-arch=${CT_ARCH_ARCH}"
3.1 --- a/scripts/build/cc_gcc.sh Wed Apr 18 17:35:04 2007 +0000
3.2 +++ b/scripts/build/cc_gcc.sh Sat Apr 21 17:31:51 2007 +0000
3.3 @@ -29,6 +29,7 @@
3.4 extra_config="--enable-languages=${lang_opt}"
3.5 [ "${CT_ARCH_FLOAT_SW}" = "y" ] && extra_config="${extra_config} --with-float=soft"
3.6 [ "${CT_SHARED_LIBS}" = "y" ] || extra_config="${extra_config} --disable-shared"
3.7 + [ -n "${CT_ARCH_ABI}" ] && extra_config="${extra_config} --with-abi=${CT_ARCH_ABI}"
3.8 [ -n "${CT_ARCH_CPU}" ] && extra_config="${extra_config} --with-cpu=${CT_ARCH_CPU}"
3.9 [ -n "${CT_ARCH_TUNE}" ] && extra_config="${extra_config} --with-tune=${CT_ARCH_TUNE}"
3.10 [ -n "${CT_ARCH_ARCH}" ] && extra_config="${extra_config} --with-arch=${CT_ARCH_ARCH}"
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
4.2 +++ b/tools/extractConfig.sh Sat Apr 21 17:31:51 2007 +0000
4.3 @@ -0,0 +1,23 @@
4.4 +#!/bin/sh
4.5 +
4.6 +# This scripts extracts a crosstool-ng configuration from the log file
4.7 +# of a toolchain build with crosstool-ng.
4.8 +
4.9 +# Usage: $0 <logfile>
4.10 +
4.11 +cat "$1" |awk '
4.12 +BEGIN {
4.13 + dump = 0;
4.14 +}
4.15 +
4.16 +$0~/Dumping crosstool-NG configuration: done in.+s$/ {
4.17 + dump = 0;
4.18 +}
4.19 +
4.20 +dump == 1 { $1 = "" }
4.21 +dump == 1
4.22 +
4.23 +$0~/Dumping crosstool-NG configuration$/ {
4.24 + dump = 1;
4.25 +}
4.26 +' |cut -d ' ' -f 2-