aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/vcs/linux.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-11-18 17:39:09 +0100
committerDmitry Vyukov <dvyukov@google.com>2019-11-18 17:39:09 +0100
commitb436ffb77df158d69b51c39bb3bc480415118368 (patch)
tree3c63b83f6084812ec797dab0e22745d8d6a42c25 /pkg/vcs/linux.go
parent1daed50ac33511e1a107228a9c3b80e5c4aebb5c (diff)
pkg/build: produce more deterministic linux binaries
There are few more dynamic variables related to kernel release tagging. Set these to known deterministic values.
Diffstat (limited to 'pkg/vcs/linux.go')
-rw-r--r--pkg/vcs/linux.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/vcs/linux.go b/pkg/vcs/linux.go
index b14b75280..c07c6aeaa 100644
--- a/pkg/vcs/linux.go
+++ b/pkg/vcs/linux.go
@@ -154,6 +154,8 @@ func linuxDisableConfigs(config []byte, tags map[string]bool) []byte {
// Second, at 6689da155bdcd17abfe4d3a8b1e245d9ed4b5f2c CONFIG_KCOV selects CONFIG_GCC_PLUGIN_SANCOV
// (why?), which is build broken for hundreds of revisions.
"CONFIG_KCOV": "disable-always",
+ // This helps to produce stable binaries in presence of kernel tag changes.
+ "CONFIG_LOCALVERSION_AUTO": "disable-always",
}
for cfg, tag := range prereq {
if !tags[tag] {