aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-04-10 19:39:27 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-04-10 19:39:27 -0400
commit3cc000b58360d8df402e31277c3dc0ebe34ad110 (patch)
treeec3cac727ce780345de92c5e6079fd5c9c4e8f5a /arch/sh
parent1bc571853381b81514cfc815b07a5cc2be4c86d2 (diff)
sh: Plug in support for ARCH=sh64 using sh SRCARCH.
This adds in support for building with ARCH=sh64 using the sh SRCARCH. This tidies up the randconfig generation somewhat to make sure that we don't end up with impossible configurations, and without having to rely on things like KCONFIG_ALLCONFIG to detect the proper CPU support subset. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/Kconfig17
1 files changed, 15 insertions, 2 deletions
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig
index 45f4a322ce4a..e7390dd0283d 100644
--- a/arch/sh/Kconfig
+++ b/arch/sh/Kconfig
@@ -22,7 +22,7 @@ config SUPERH
22 <http://www.linux-sh.org/>. 22 <http://www.linux-sh.org/>.
23 23
24config SUPERH32 24config SUPERH32
25 def_bool !SUPERH64 25 def_bool ARCH = "sh"
26 select HAVE_KPROBES 26 select HAVE_KPROBES
27 select HAVE_KRETPROBES 27 select HAVE_KRETPROBES
28 select HAVE_FUNCTION_TRACER 28 select HAVE_FUNCTION_TRACER
@@ -32,7 +32,7 @@ config SUPERH32
32 select ARCH_HIBERNATION_POSSIBLE if MMU 32 select ARCH_HIBERNATION_POSSIBLE if MMU
33 33
34config SUPERH64 34config SUPERH64
35 def_bool y if CPU_SH5 35 def_bool ARCH = "sh64"
36 36
37config ARCH_DEFCONFIG 37config ARCH_DEFCONFIG
38 string 38 string
@@ -188,6 +188,8 @@ config ARCH_SHMOBILE
188 bool 188 bool
189 select ARCH_SUSPEND_POSSIBLE 189 select ARCH_SUSPEND_POSSIBLE
190 190
191if SUPERH32
192
191choice 193choice
192 prompt "Processor sub-type selection" 194 prompt "Processor sub-type selection"
193 195
@@ -409,6 +411,15 @@ config CPU_SUBTYPE_SH7366
409 select SYS_SUPPORTS_NUMA 411 select SYS_SUPPORTS_NUMA
410 select SYS_SUPPORTS_CMT 412 select SYS_SUPPORTS_CMT
411 413
414endchoice
415
416endif
417
418if SUPERH64
419
420choice
421 prompt "Processor sub-type selection"
422
412# SH-5 Processor Support 423# SH-5 Processor Support
413 424
414config CPU_SUBTYPE_SH5_101 425config CPU_SUBTYPE_SH5_101
@@ -421,6 +432,8 @@ config CPU_SUBTYPE_SH5_103
421 432
422endchoice 433endchoice
423 434
435endif
436
424source "arch/sh/mm/Kconfig" 437source "arch/sh/mm/Kconfig"
425 438
426source "arch/sh/Kconfig.cpu" 439source "arch/sh/Kconfig.cpu"