Re: [PATCH] sparc: Use 64BIT config entry

From: Sam Ravnborg
Date: Fri Jan 02 2009 - 03:02:57 EST


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@xxxxxxxxxx>
>
> --
> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/