]> git.baikalelectronics.ru Git - kernel.git/commit
init/Kconfig: ban CONFIG_LOCALVERSION_AUTO with allmodconfig
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 2 Aug 2016 21:07:21 +0000 (14:07 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 2 Aug 2016 23:35:41 +0000 (19:35 -0400)
commit37f7296b6a856a4f393bd51c8348a382c4483b4c
tree1f01e4ee3f68dec7219f8b36c15ed1f4f41b332b
parentffba926996d55a4bdd9f8a3df757f34f42583703
init/Kconfig: ban CONFIG_LOCALVERSION_AUTO with allmodconfig

Doing patches with allmodconfig kernel compiled and committing stuff
into local tree have unfortunate consequence: kernel version changes (as
it should) leading to recompiling and relinking of several files even if
they weren't touched (or interesting at all).  This and "git-whatever"
figuring out current version slow down compilation for no good reason.

But lets face it, "allmodconfig" kernels don't care about kernel
version, they are simply compile check guinea pigs.

Make LOCALVERSION_AUTO depend on !COMPILE_TEST, so it doesn't sneak into
allmodconfig .config.

Link: http://lkml.kernel.org/r/20160707214954.GC31678@p183.telecom.by
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Michal Marek <mmarek@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
init/Kconfig