linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* due to kconfig changes kernel config file is no longer sufficient for configuring the kernel
@ 2018-06-27 12:37 Michal Suchánek
  2018-06-27 14:07 ` Masahiro Yamada
  0 siblings, 1 reply; 13+ messages in thread
From: Michal Suchánek @ 2018-06-27 12:37 UTC (permalink / raw)
  To: linux-kernel
  Cc: Takashi Iwai, Andreas Schwab, Michal Kubecek, Masahiro Yamada,
	Michal Marek, Jonathan Corbet, Yoshinori Sato, Rich Felker,
	David S. Miller, Jeff Dike, Richard Weinberger, Thomas Gleixner,
	Ingo Molnar, H. Peter Anvin, x86, Kees Cook, Philippe Ombredanne,
	Greg Kroah-Hartman, Ulf Magnusson, Jeff Mahoney, Peter Zijlstra,,
	Mathieu Desnoyers, Frederic Weisbecker, Randy Dunlap,
	Dominik Brodowski, Nicholas Piggin, linux-kbuild, linux-doc,
	linux-sh, sparclinux, linux-um, Michal Suchánek

Hello,

in the x86 Kconfig we have this:

# Select 32 or 64 bit
config 64BIT
        bool "64-bit kernel" if "$(ARCH)" = "x86"
        default "$(ARCH)" != "i386"
        ---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

Since commit 104daea149c4 ("kconfig: reference environment variables
directly and remove 'option env='") the value of ARCH is not saved in
the kernel config. Since commit f467c5640c29 ("kconfig: only write '#
CONFIG_FOO is not set' for visible symbols") the value of 64BIT is not
saved if the ARCH is set i386 or x86_64 because the symbol is not
visible.

There is a number of ways to hack this particular case to work.

However, there is a more general problem with this. Some config options
may depend on the environment, may not be saved, and the environment is
not saved either. So in the end all the infrastructure with symlinks
from module directory pointing to the kernel source and object
directory is useless. To interpret the config stored there you need the
environment and that is not saved anywhere. So if you try to build
out-of-tree module it might end up reconfiguring your kernel and
producing useless modules.

Is there any plan to fix this?

Thanks

Michal

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

end of thread, other threads:[~2018-09-03 10:23 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-27 12:37 due to kconfig changes kernel config file is no longer sufficient for configuring the kernel Michal Suchánek
2018-06-27 14:07 ` Masahiro Yamada
2018-06-28  9:16   ` Michal Suchánek
2018-07-26  8:33     ` Michal Suchánek
2018-07-30  8:02     ` Masahiro Yamada
2018-08-06 18:07       ` Michal Suchánek
2018-08-20 18:15         ` Masahiro Yamada
2018-08-20 18:37           ` Takashi Iwai
2018-09-03 10:23             ` Masahiro Yamada
2018-08-20 21:33           ` Michal Suchánek
2018-09-03 10:06             ` Masahiro Yamada
2018-08-06 18:33       ` Michal Kubecek
2018-08-20 18:24         ` Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).