diff options
author | Bastian Blank <waldi@debian.org> | 2009-01-05 02:03:10 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-05 02:03:10 -0500 |
commit | 761b602620b4627dbd8f1b0bd2896022dc168a6d (patch) | |
tree | cdf85e82563225bc682efc44293e2fb2deb5a4da /arch/sparc | |
parent | 473321fc373e712fbb9b88e2c0736e55fddadab8 (diff) |
sparc: Use 64BIT config entry
Use 64BIT config entry to distinguish between 32 and 64bit builds
instead of relying on the ARCH setting. Using sparc64 as ARCH still
forces 64BIT on.
Inspired by the x86 and s390 configs.
[ Integrated CONFIG_64BIT help text suggestions from Sam -DaveM ]
Signed-off-by: Bastian Blank <waldi@debian.org>
Tested-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/Kconfig | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index 002f7b4e6ba2..de58c02633b4 100644 --- a/arch/sparc/Kconfig +++ b/arch/sparc/Kconfig | |||
@@ -4,6 +4,17 @@ | |||
4 | 4 | ||
5 | mainmenu "Linux/SPARC Kernel Configuration" | 5 | mainmenu "Linux/SPARC Kernel Configuration" |
6 | 6 | ||
7 | config 64BIT | ||
8 | bool "64-bit kernel" if ARCH = "sparc" | ||
9 | default ARCH = "sparc64" | ||
10 | help | ||
11 | SPARC is a family of RISC microprocessors designed and marketed by | ||
12 | Sun Microsystems, incorporated. They are very widely found in Sun | ||
13 | workstations and clones. | ||
14 | |||
15 | Say yes to build a 64-bit kernel - formerly known as sparc64 | ||
16 | Say no to build a 32-bit kernel - formerly known as sparc | ||
17 | |||
7 | config SPARC | 18 | config SPARC |
8 | bool | 19 | bool |
9 | default y | 20 | default y |
@@ -15,22 +26,11 @@ config SPARC | |||
15 | select RTC_CLASS | 26 | select RTC_CLASS |
16 | select RTC_DRV_M48T59 | 27 | select RTC_DRV_M48T59 |
17 | 28 | ||
18 | # Identify this as a Sparc32 build | ||
19 | config SPARC32 | 29 | config SPARC32 |
20 | bool | 30 | def_bool !64BIT |
21 | default y if ARCH = "sparc" | ||
22 | help | ||
23 | SPARC is a family of RISC microprocessors designed and marketed by | ||
24 | Sun Microsystems, incorporated. They are very widely found in Sun | ||
25 | workstations and clones. This port covers the original 32-bit SPARC; | ||
26 | it is old and stable and usually considered one of the "big three" | ||
27 | along with the Intel and Alpha ports. The UltraLinux project | ||
28 | maintains both the SPARC32 and SPARC64 ports; its web page is | ||
29 | available at <http://www.ultralinux.org/>. | ||
30 | 31 | ||
31 | config SPARC64 | 32 | config SPARC64 |
32 | bool | 33 | def_bool 64BIT |
33 | default y if ARCH = "sparc64" | ||
34 | select ARCH_SUPPORTS_MSI | 34 | select ARCH_SUPPORTS_MSI |
35 | select HAVE_FUNCTION_TRACER | 35 | select HAVE_FUNCTION_TRACER |
36 | select HAVE_KRETPROBES | 36 | select HAVE_KRETPROBES |
@@ -53,9 +53,6 @@ config BITS | |||
53 | default 32 if SPARC32 | 53 | default 32 if SPARC32 |
54 | default 64 if SPARC64 | 54 | default 64 if SPARC64 |
55 | 55 | ||
56 | config 64BIT | ||
57 | def_bool y if SPARC64 | ||
58 | |||
59 | config GENERIC_TIME | 56 | config GENERIC_TIME |
60 | bool | 57 | bool |
61 | default y if SPARC64 | 58 | default y if SPARC64 |