From bb704f532af37086f7a1f2d4a4a3386941cbdb85 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Sat, 14 Nov 2015 09:24:41 -0800 Subject: Allow --with-cpu/--with-tune for !arm. The configure error mentioned in the commits that disable --with-arch/--with-tune when --with-cpu is specified is specific to ARM builds. For other architectures, it makes sense (hey, it even makes sense for ARM - read 'info gcc'! - it is just a shortcoming of ARM build, apparently). Thus, add an arch setting ARCH_EXCLUSIVE_WITH_CPU (currently, set only for ARM) that will trigger current behavior. Permit combinations of --with-arch/cpu/tune for other arches. Signed-off-by: Alexey Neyman --- config/target.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'config/target.in') diff --git a/config/target.in b/config/target.in index 31d2dc1b..8cbaabc0 100644 --- a/config/target.in +++ b/config/target.in @@ -210,11 +210,14 @@ config ARCH_SUPPORTS_WITH_FPU config ARCH_SUPPORTS_SOFTFP bool +config ARCH_EXCLUSIVE_WITH_CPU + bool + config ARCH_ARCH string prompt "Architecture level" depends on ARCH_SUPPORTS_WITH_ARCH - depends on ARCH_CPU = "" + depends on !ARCH_EXCLUSIVE_WITH_CPU || ARCH_CPU = "" default "" help GCC uses this name to determine what kind of instructions it can emit @@ -271,7 +274,7 @@ config ARCH_TUNE string prompt "Tune for CPU" depends on ARCH_SUPPORTS_WITH_TUNE - depends on ARCH_CPU = "" + depends on !ARCH_EXCLUSIVE_WITH_CPU || ARCH_CPU = "" default "" help This option is very similar to the ARCH_CPU option (above), except -- cgit v1.2.3