public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/Kconfig: Fix allnoconfig without explicitly specified ARCH
@ 2015-04-03 11:00 Borislav Petkov
  2015-04-03 13:42 ` Paul Bolle
  0 siblings, 1 reply; 7+ messages in thread
From: Borislav Petkov @ 2015-04-03 11:00 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: X86 ML, LKML

From: Borislav Petkov <bp@suse.de>

Doing

  $ make allnoconfig

I get a 32-bit allnoconfig:

  $ grep -i x86 .config
  # Linux/x86 4.0.0-rc6 Kernel Configuration
  CONFIG_X86_32=y
  CONFIG_X86=y
  CONFIG_ARCH_DEFCONFIG="arch/x86/configs/i386_defconfig"

The same if I do:

  $ make ARCH=i386 allnoconfig
  $ grep -i x86 .config | head -20
  CONFIG_X86_32=y
  CONFIG_X86=y
  CONFIG_ARCH_DEFCONFIG="arch/x86/configs/i386_defconfig"

Make allnoconfig without ARCH specified on the command line default to
64-bit.

Signed-off-by: Borislav Petkov <bp@suse.de>
---
 arch/x86/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 0a37094e458e..04dfb4e7aeff 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -2,6 +2,7 @@
 config 64BIT
 	bool "64-bit kernel" if ARCH = "x86"
 	default ARCH != "i386"
+	option allnoconfig_y
 	---help---
 	  Say yes to build a 64-bit kernel - formerly known as x86_64
 	  Say no to build a 32-bit kernel - formerly known as i386
-- 
2.3.3


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

end of thread, other threads:[~2015-04-04  9:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-03 11:00 [PATCH] x86/Kconfig: Fix allnoconfig without explicitly specified ARCH Borislav Petkov
2015-04-03 13:42 ` Paul Bolle
2015-04-03 14:59   ` Borislav Petkov
2015-04-03 15:33     ` Paul Bolle
2015-04-03 17:23       ` Borislav Petkov
2015-04-03 21:43         ` Paul Bolle
2015-04-04  9:35           ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox