# HG changeset patch # User "Yann E. MORIN" # Date 1177176711 0 # Node ID 42faddd0098abfe9e84497f588b0cc7e5d0f51c8 # Parent 1bfe65e14402caa5603b6cc9cc2c22257dad5025 Merge first shot from the MIPS branch. diff -r 1bfe65e14402 -r 42faddd0098a config/target.in --- a/config/target.in Wed Apr 18 17:35:04 2007 +0000 +++ b/config/target.in Sat Apr 21 17:31:51 2007 +0000 @@ -59,6 +59,19 @@ comment "Target optimisations" +config ARCH_ABI + string + prompt "Generate code for the specific ABI" + default "" + help + Generate code for the given ABI. + + Pick a value from the gcc manual for your choosen gcc version and your + target CPU. + + Leave blank if you don't know, or if your target architecutre does not + offer this option. + config ARCH_CPU string prompt "Emit assembly for CPU" diff -r 1bfe65e14402 -r 42faddd0098a scripts/build/cc_core_gcc.sh --- a/scripts/build/cc_core_gcc.sh Wed Apr 18 17:35:04 2007 +0000 +++ b/scripts/build/cc_core_gcc.sh Sat Apr 21 17:31:51 2007 +0000 @@ -16,6 +16,7 @@ extra_config="" [ "${CT_ARCH_FLOAT_SW}" = "y" ] && extra_config="${extra_config} --with-float=soft" + [ -n "${CT_ARCH_ABI}" ] && extra_config="${extra_config} --with-abi=${CT_ARCH_ABI}" [ -n "${CT_ARCH_CPU}" ] && extra_config="${extra_config} --with-cpu=${CT_ARCH_CPU}" [ -n "${CT_ARCH_TUNE}" ] && extra_config="${extra_config} --with-tune=${CT_ARCH_TUNE}" [ -n "${CT_ARCH_ARCH}" ] && extra_config="${extra_config} --with-arch=${CT_ARCH_ARCH}" diff -r 1bfe65e14402 -r 42faddd0098a scripts/build/cc_gcc.sh --- a/scripts/build/cc_gcc.sh Wed Apr 18 17:35:04 2007 +0000 +++ b/scripts/build/cc_gcc.sh Sat Apr 21 17:31:51 2007 +0000 @@ -29,6 +29,7 @@ extra_config="--enable-languages=${lang_opt}" [ "${CT_ARCH_FLOAT_SW}" = "y" ] && extra_config="${extra_config} --with-float=soft" [ "${CT_SHARED_LIBS}" = "y" ] || extra_config="${extra_config} --disable-shared" + [ -n "${CT_ARCH_ABI}" ] && extra_config="${extra_config} --with-abi=${CT_ARCH_ABI}" [ -n "${CT_ARCH_CPU}" ] && extra_config="${extra_config} --with-cpu=${CT_ARCH_CPU}" [ -n "${CT_ARCH_TUNE}" ] && extra_config="${extra_config} --with-tune=${CT_ARCH_TUNE}" [ -n "${CT_ARCH_ARCH}" ] && extra_config="${extra_config} --with-arch=${CT_ARCH_ARCH}" diff -r 1bfe65e14402 -r 42faddd0098a tools/extractConfig.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tools/extractConfig.sh Sat Apr 21 17:31:51 2007 +0000 @@ -0,0 +1,23 @@ +#!/bin/sh + +# This scripts extracts a crosstool-ng configuration from the log file +# of a toolchain build with crosstool-ng. + +# Usage: $0 + +cat "$1" |awk ' +BEGIN { + dump = 0; +} + +$0~/Dumping crosstool-NG configuration: done in.+s$/ { + dump = 0; +} + +dump == 1 { $1 = "" } +dump == 1 + +$0~/Dumping crosstool-NG configuration$/ { + dump = 1; +} +' |cut -d ' ' -f 2-