aboutsummaryrefslogtreecommitdiffstats
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
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>
-rw-r--r--Makefile7
-rw-r--r--arch/sh/Kconfig17
2 files changed, 21 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index c6307b6d069f..59b60d5562d3 100644
--- a/Makefile
+++ b/Makefile
@@ -169,7 +169,7 @@ SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
169 -e s/arm.*/arm/ -e s/sa110/arm/ \ 169 -e s/arm.*/arm/ -e s/sa110/arm/ \
170 -e s/s390x/s390/ -e s/parisc64/parisc/ \ 170 -e s/s390x/s390/ -e s/parisc64/parisc/ \
171 -e s/ppc.*/powerpc/ -e s/mips.*/mips/ \ 171 -e s/ppc.*/powerpc/ -e s/mips.*/mips/ \
172 -e s/sh.*/sh/ ) 172 -e s/sh[234].*/sh/ )
173 173
174# Cross compiling and selecting different set of gcc/bin-utils 174# Cross compiling and selecting different set of gcc/bin-utils
175# --------------------------------------------------------------------------- 175# ---------------------------------------------------------------------------
@@ -210,6 +210,11 @@ ifeq ($(ARCH),sparc64)
210 SRCARCH := sparc 210 SRCARCH := sparc
211endif 211endif
212 212
213# Additional ARCH settings for sh
214ifeq ($(ARCH),sh64)
215 SRCARCH := sh
216endif
217
213# Where to locate arch specific headers 218# Where to locate arch specific headers
214hdr-arch := $(SRCARCH) 219hdr-arch := $(SRCARCH)
215 220
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"