From: Alexey Dobriyan Date: Tue, 2 Aug 2016 21:07:21 +0000 (-0700) Subject: init/Kconfig: ban CONFIG_LOCALVERSION_AUTO with allmodconfig X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ac3339baffd724edfb188ef57d1345d9649ba9af;p=linux-beck.git 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 Cc: Michal Marek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/init/Kconfig b/init/Kconfig index 8f08f49a7c39..380798f86aae 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -81,6 +81,7 @@ config LOCALVERSION config LOCALVERSION_AUTO bool "Automatically append version information to the version string" default y + depends on !COMPILE_TEST help This will try to automatically determine if the current tree is a release tree by looking for git tags that belong to the current