diff options
-rw-r--r-- | Makefile | 7 | ||||
-rw-r--r-- | arch/sh/Kconfig | 17 |
2 files changed, 21 insertions, 3 deletions
@@ -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 |
211 | endif | 211 | endif |
212 | 212 | ||
213 | # Additional ARCH settings for sh | ||
214 | ifeq ($(ARCH),sh64) | ||
215 | SRCARCH := sh | ||
216 | endif | ||
217 | |||
213 | # Where to locate arch specific headers | 218 | # Where to locate arch specific headers |
214 | hdr-arch := $(SRCARCH) | 219 | hdr-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 | ||
24 | config SUPERH32 | 24 | config 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 | ||
34 | config SUPERH64 | 34 | config SUPERH64 |
35 | def_bool y if CPU_SH5 | 35 | def_bool ARCH = "sh64" |
36 | 36 | ||
37 | config ARCH_DEFCONFIG | 37 | config 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 | ||
191 | if SUPERH32 | ||
192 | |||
191 | choice | 193 | choice |
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 | ||
414 | endchoice | ||
415 | |||
416 | endif | ||
417 | |||
418 | if SUPERH64 | ||
419 | |||
420 | choice | ||
421 | prompt "Processor sub-type selection" | ||
422 | |||
412 | # SH-5 Processor Support | 423 | # SH-5 Processor Support |
413 | 424 | ||
414 | config CPU_SUBTYPE_SH5_101 | 425 | config CPU_SUBTYPE_SH5_101 |
@@ -421,6 +432,8 @@ config CPU_SUBTYPE_SH5_103 | |||
421 | 432 | ||
422 | endchoice | 433 | endchoice |
423 | 434 | ||
435 | endif | ||
436 | |||
424 | source "arch/sh/mm/Kconfig" | 437 | source "arch/sh/mm/Kconfig" |
425 | 438 | ||
426 | source "arch/sh/Kconfig.cpu" | 439 | source "arch/sh/Kconfig.cpu" |