All of lore.kernel.org
 help / color / mirror / Atom feed
* 32bit allyesconfig on 64bit system broke
@ 2013-08-09 22:57 Andi Kleen
  2013-08-13 20:32 ` Michal Marek
  0 siblings, 1 reply; 4+ messages in thread
From: Andi Kleen @ 2013-08-09 22:57 UTC (permalink / raw)
  To: linux-kbuild


% linux32 make allyesconfig
% head .config
% head .config
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 3.11.0-rc4 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y

This used to work to give me a 32bit allyesconfig.
How am I supposed to do this now?

Thanks,

-Andi

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 32bit allyesconfig on 64bit system broke
  2013-08-09 22:57 32bit allyesconfig on 64bit system broke Andi Kleen
@ 2013-08-13 20:32 ` Michal Marek
  2013-08-28 21:05   ` H. Peter Anvin
  0 siblings, 1 reply; 4+ messages in thread
From: Michal Marek @ 2013-08-13 20:32 UTC (permalink / raw)
  To: Andi Kleen; +Cc: linux-kbuild

Dne 10.8.2013 00:57, Andi Kleen napsal(a):
> 
> % linux32 make allyesconfig
> % head .config
> % head .config
> #
> # Automatically generated file; DO NOT EDIT.
> # Linux/x86 3.11.0-rc4 Kernel Configuration
> #
> CONFIG_64BIT=y
> CONFIG_X86_64=y
> CONFIG_X86=y
> 
> This used to work to give me a 32bit allyesconfig.
> How am I supposed to do this now?

This changed in ffee0de (x86: Default to ARCH=x86 to avoid overriding
CONFIG_64BIT). The default $ARCH value on both ix86 and x86_64
buildhosts is "x86" and CONFIG_64BIT is therefore a user-selectable
knob. You can do

  make ARCH=i386 allyesconfig

to force 32bit. Or the generic way:

  echo '# CONFIG_64BIT is not set' >base.config
  KCONFIG_ALLCONFIG=base.config linux32 make allyesconfig

Michal

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 32bit allyesconfig on 64bit system broke
  2013-08-13 20:32 ` Michal Marek
@ 2013-08-28 21:05   ` H. Peter Anvin
  2013-08-29  6:03     ` Andi Kleen
  0 siblings, 1 reply; 4+ messages in thread
From: H. Peter Anvin @ 2013-08-28 21:05 UTC (permalink / raw)
  To: Michal Marek; +Cc: Andi Kleen, linux-kbuild

On 08/13/2013 01:32 PM, Michal Marek wrote:
> Dne 10.8.2013 00:57, Andi Kleen napsal(a):
>>
>> % linux32 make allyesconfig
>> % head .config
>> % head .config
>> #
>> # Automatically generated file; DO NOT EDIT.
>> # Linux/x86 3.11.0-rc4 Kernel Configuration
>> #
>> CONFIG_64BIT=y
>> CONFIG_X86_64=y
>> CONFIG_X86=y
>>
>> This used to work to give me a 32bit allyesconfig.
>> How am I supposed to do this now?
> 
> This changed in ffee0de (x86: Default to ARCH=x86 to avoid overriding
> CONFIG_64BIT). The default $ARCH value on both ix86 and x86_64
> buildhosts is "x86" and CONFIG_64BIT is therefore a user-selectable
> knob. You can do
> 
>   make ARCH=i386 allyesconfig
> 
> to force 32bit. Or the generic way:
> 
>   echo '# CONFIG_64BIT is not set' >base.config
>   KCONFIG_ALLCONFIG=base.config linux32 make allyesconfig
> 

"make ARCH=i386 allyesconfig" has been the standard way to do this for
quite a few years, so that is the forward and backwards compatible way.

	-hpa



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 32bit allyesconfig on 64bit system broke
  2013-08-28 21:05   ` H. Peter Anvin
@ 2013-08-29  6:03     ` Andi Kleen
  0 siblings, 0 replies; 4+ messages in thread
From: Andi Kleen @ 2013-08-29  6:03 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: Michal Marek, Andi Kleen, linux-kbuild

On Wed, Aug 28, 2013 at 02:05:31PM -0700, H. Peter Anvin wrote:
> On 08/13/2013 01:32 PM, Michal Marek wrote:
> > Dne 10.8.2013 00:57, Andi Kleen napsal(a):
> >>
> >> % linux32 make allyesconfig
> >> % head .config
> >> % head .config
> >> #
> >> # Automatically generated file; DO NOT EDIT.
> >> # Linux/x86 3.11.0-rc4 Kernel Configuration
> >> #
> >> CONFIG_64BIT=y
> >> CONFIG_X86_64=y
> >> CONFIG_X86=y
> >>
> >> This used to work to give me a 32bit allyesconfig.
> >> How am I supposed to do this now?
> > 
> > This changed in ffee0de (x86: Default to ARCH=x86 to avoid overriding
> > CONFIG_64BIT). The default $ARCH value on both ix86 and x86_64
> > buildhosts is "x86" and CONFIG_64BIT is therefore a user-selectable
> > knob. You can do
> > 
> >   make ARCH=i386 allyesconfig
> > 
> > to force 32bit. Or the generic way:
> > 
> >   echo '# CONFIG_64BIT is not set' >base.config
> >   KCONFIG_ALLCONFIG=base.config linux32 make allyesconfig
> > 
> 
> "make ARCH=i386 allyesconfig" has been the standard way to do this for
> quite a few years, so that is the forward and backwards compatible way.

I've always used "linux32 ..."

Well it broke all my scripts and seems to be a totally pointless
change as far as I can tell.

The worse thing is that I didn't notice initially because it's
a silent problem -- the 64bit kernel still boots fine on any
system with lm support, even with 32bit userland.

So silently breaking long established practice ... no excuse for things
like that really in a project like Linux. If you break things
please always do it in a obvious way.

-Andi

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-08-29  6:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-09 22:57 32bit allyesconfig on 64bit system broke Andi Kleen
2013-08-13 20:32 ` Michal Marek
2013-08-28 21:05   ` H. Peter Anvin
2013-08-29  6:03     ` Andi Kleen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.