tile: force CONFIG_TILEGX if ARCH != tilepro
authorChris Metcalf <cmetcalf@ezchip.com>
Wed, 3 Jun 2015 14:37:56 +0000 (10:37 -0400)
committerChris Metcalf <cmetcalf@ezchip.com>
Wed, 3 Jun 2015 14:55:36 +0000 (10:55 -0400)
This allows configuring with allnoconfig (for tilegx) or allyesconfig
(for tilepro) without creating an unbuildable configuration.

Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Chris Metcalf <cmetcalf@ezchip.com>
arch/tile/Kconfig

index bcc7d66..775db82 100644 (file)
@@ -127,8 +127,10 @@ config HVC_TILE
        select HVC_IRQ if TILEGX
        def_bool y
 
        select HVC_IRQ if TILEGX
        def_bool y
 
+# Building with ARCH=tilegx (or ARCH=tile) implies using the
+# 64-bit TILE-Gx toolchain, so force CONFIG_TILEGX on.
 config TILEGX
 config TILEGX
-       bool "Building for TILE-Gx (64-bit) processor"
+       def_bool ARCH != "tilepro"
        select SPARSE_IRQ
        select GENERIC_IRQ_LEGACY_ALLOC_HWIRQ
        select HAVE_FUNCTION_TRACER
        select SPARSE_IRQ
        select GENERIC_IRQ_LEGACY_ALLOC_HWIRQ
        select HAVE_FUNCTION_TRACER