summaryrefslogtreecommitdiff
path: root/config/target.in
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2015-06-08 20:42:38 (GMT)
committerYann E. MORIN <yann.morin.1998@free.fr>2015-06-08 20:42:38 (GMT)
commit8a2eb07cf18adfe6c3e361e801bedea6d673e72e (patch)
tree3b8764f7508f76fe68fb8f26e492bdceb01a01c3 /config/target.in
parent334c22a4cc38b92905d1191037062a742d3465bb (diff)
arch: do not allow specifying both --with-arch and --with-cpu
Normally, a specific CPU fully implies the architecture level. For example, a cortec-a8 is forcibly an armv7, so spwecifying both is redundant, and even dangerous (as incompatible values may be passed). So far, gcc was pretty happy when both were specified at the same time, and some time ago, it started being a warning, and only recently was it turned into a hard error. So, hide the architecture level prompt when a CPU has been specified. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Diffstat (limited to 'config/target.in')
-rw-r--r--config/target.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/target.in b/config/target.in
index c655783..629fb80 100644
--- a/config/target.in
+++ b/config/target.in
@@ -196,6 +196,7 @@ config ARCH_ARCH
string
prompt "Architecture level"
depends on ARCH_SUPPORTS_WITH_ARCH
+ depends on ARCH_CPU = ""
default ""
help
GCC uses this name to determine what kind of instructions it can emit