* [PATCH] sparc: Use 64BIT config entry
@ 2009-01-01 19:35 Bastian Blank
2009-01-02 8:04 ` Sam Ravnborg
0 siblings, 1 reply; 3+ messages in thread
From: Bastian Blank @ 2009-01-01 19:35 UTC (permalink / raw)
To: David S. Miller, linux-sparc; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 325 bytes --]
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.
Signed-off-by: Bastian Blank <waldi@debian.org>
--
You can't evaluate a man by logic alone.
-- McCoy, "I, Mudd", stardate 4513.3
[-- Attachment #2: diff --]
[-- Type: text/plain, Size: 1434 bytes --]
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
index 0a94d9c..73ddfd9 100644
--- a/arch/sparc/Kconfig
+++ b/arch/sparc/Kconfig
@@ -4,6 +4,13 @@
mainmenu "Linux/SPARC Kernel Configuration"
+config 64BIT
+ bool "64-bit kernel" if ARCH = "sparc"
+ default ARCH = "sparc64"
+ help
+ 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
bool
default y
@@ -15,22 +22,11 @@ config SPARC
select RTC_CLASS
select RTC_DRV_M48T59
-# Identify this as a Sparc32 build
config SPARC32
- bool
- 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/>.
+ def_bool !64BIT
config SPARC64
- bool
- default y if ARCH = "sparc64"
+ def_bool 64BIT
select ARCH_SUPPORTS_MSI
select HAVE_FUNCTION_TRACER
select HAVE_KRETPROBES
@@ -53,9 +49,6 @@ config BITS
default 32 if SPARC32
default 64 if SPARC64
-config 64BIT
- def_bool y if SPARC64
-
config GENERIC_TIME
bool
default y if SPARC64
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] sparc: Use 64BIT config entry
2009-01-01 19:35 [PATCH] sparc: Use 64BIT config entry Bastian Blank
@ 2009-01-02 8:04 ` Sam Ravnborg
2009-01-05 7:03 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: Sam Ravnborg @ 2009-01-02 8:04 UTC (permalink / raw)
To: Bastian Blank, David S. Miller, linux-sparc, linux-kernel
On Thu, Jan 01, 2009 at 08:35:04PM +0100, Bastian Blank wrote:
> 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.
Hi Bastian.
I have tested the patch and it works as expected.
One small nit below.
Sam
>
> Inspired by the x86 and s390 configs.
>
> Signed-off-by: Bastian Blank <waldi@debian.org>
>
> --
> You can't evaluate a man by logic alone.
> -- McCoy, "I, Mudd", stardate 4513.3
> diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
> index 0a94d9c..73ddfd9 100644
> --- a/arch/sparc/Kconfig
> +++ b/arch/sparc/Kconfig
> @@ -4,6 +4,13 @@
>
> mainmenu "Linux/SPARC Kernel Configuration"
>
> +config 64BIT
> + bool "64-bit kernel" if ARCH = "sparc"
> + default ARCH = "sparc64"
> + help
> + Say yes to build a 64-bit kernel - formerly known as sparc64
> + Say no to build a 32-bit kernel - formerly known as sparc
We should update this help escription with something remotely like this:
> + SPARC is a family of RISC microprocessors designed and marketed by
> + Sun Microsystems, incorporated. They are very widely found in Sun
> + workstations and clones.
Just a raw copy from the (always hidden) help text for SPARC32.
Sam
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] sparc: Use 64BIT config entry
2009-01-02 8:04 ` Sam Ravnborg
@ 2009-01-05 7:03 ` David Miller
0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2009-01-05 7:03 UTC (permalink / raw)
To: sam; +Cc: bastian, linux-sparc, linux-kernel
From: Sam Ravnborg <sam@ravnborg.org>
Date: Fri, 2 Jan 2009 09:04:20 +0100
> On Thu, Jan 01, 2009 at 08:35:04PM +0100, Bastian Blank wrote:
> > +config 64BIT
> > + bool "64-bit kernel" if ARCH = "sparc"
> > + default ARCH = "sparc64"
> > + help
> > + Say yes to build a 64-bit kernel - formerly known as sparc64
> > + Say no to build a 32-bit kernel - formerly known as sparc
>
> We should update this help escription with something remotely like this:
>
> > + SPARC is a family of RISC microprocessors designed and marketed by
> > + Sun Microsystems, incorporated. They are very widely found in Sun
> > + workstations and clones.
>
> Just a raw copy from the (always hidden) help text for SPARC32.
I've made this adjustment and commited this change as follows
below.
Thanks everyone.
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>
---
arch/sparc/Kconfig | 29 +++++++++++++----------------
1 files changed, 13 insertions(+), 16 deletions(-)
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
index 002f7b4..de58c02 100644
--- a/arch/sparc/Kconfig
+++ b/arch/sparc/Kconfig
@@ -4,6 +4,17 @@
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
bool
default y
@@ -15,22 +26,11 @@ config SPARC
select RTC_CLASS
select RTC_DRV_M48T59
-# Identify this as a Sparc32 build
config SPARC32
- bool
- 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/>.
+ def_bool !64BIT
config SPARC64
- bool
- default y if ARCH = "sparc64"
+ def_bool 64BIT
select ARCH_SUPPORTS_MSI
select HAVE_FUNCTION_TRACER
select HAVE_KRETPROBES
@@ -53,9 +53,6 @@ config BITS
default 32 if SPARC32
default 64 if SPARC64
-config 64BIT
- def_bool y if SPARC64
-
config GENERIC_TIME
bool
default y if SPARC64
--
1.6.1.15.g159c88
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-01-05 7:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-01 19:35 [PATCH] sparc: Use 64BIT config entry Bastian Blank
2009-01-02 8:04 ` Sam Ravnborg
2009-01-05 7:03 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®