mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-21 09:21:52 +00:00
Merge first shot from the MIPS branch.
This commit is contained in:
parent
2cdae6ce02
commit
c1efc08c09
@ -59,6 +59,19 @@ endchoice
|
||||
|
||||
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"
|
||||
|
@ -16,6 +16,7 @@ do_cc_core() {
|
||||
|
||||
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}"
|
||||
|
@ -29,6 +29,7 @@ do_cc() {
|
||||
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}"
|
||||
|
23
tools/extractConfig.sh
Executable file
23
tools/extractConfig.sh
Executable file
@ -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 <logfile>
|
||||
|
||||
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-
|
Loading…
x
Reference in New Issue
Block a user