Commit 761b6026 authored by Bastian Blank's avatar Bastian Blank Committed by David S. Miller

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: default avatarBastian Blank <waldi@debian.org>
Tested-by: default avatarSam Ravnborg <sam@ravnborg.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 473321fc
...@@ -4,6 +4,17 @@ ...@@ -4,6 +4,17 @@
mainmenu "Linux/SPARC Kernel Configuration" mainmenu "Linux/SPARC Kernel Configuration"
config 64BIT
bool "64-bit kernel" if ARCH = "sparc"
default ARCH = "sparc64"
help
SPARC is a family of RISC microprocessors designed and marketed by
Sun Microsystems, incorporated. They are very widely found in Sun
workstations and clones.
Say yes to build a 64-bit kernel - formerly known as sparc64
Say no to build a 32-bit kernel - formerly known as sparc
config SPARC config SPARC
bool bool
default y default y
...@@ -15,22 +26,11 @@ config SPARC ...@@ -15,22 +26,11 @@ config SPARC
select RTC_CLASS select RTC_CLASS
select RTC_DRV_M48T59 select RTC_DRV_M48T59
# Identify this as a Sparc32 build
config SPARC32 config SPARC32
bool def_bool !64BIT
default y if ARCH = "sparc"
help
SPARC is a family of RISC microprocessors designed and marketed by
Sun Microsystems, incorporated. They are very widely found in Sun
workstations and clones. This port covers the original 32-bit SPARC;
it is old and stable and usually considered one of the "big three"
along with the Intel and Alpha ports. The UltraLinux project
maintains both the SPARC32 and SPARC64 ports; its web page is
available at <http://www.ultralinux.org/>.
config SPARC64 config SPARC64
bool def_bool 64BIT
default y if ARCH = "sparc64"
select ARCH_SUPPORTS_MSI select ARCH_SUPPORTS_MSI
select HAVE_FUNCTION_TRACER select HAVE_FUNCTION_TRACER
select HAVE_KRETPROBES select HAVE_KRETPROBES
...@@ -53,9 +53,6 @@ config BITS ...@@ -53,9 +53,6 @@ config BITS
default 32 if SPARC32 default 32 if SPARC32
default 64 if SPARC64 default 64 if SPARC64
config 64BIT
def_bool y if SPARC64
config GENERIC_TIME config GENERIC_TIME
bool bool
default y if SPARC64 default y if SPARC64
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment