From b436ffb77df158d69b51c39bb3bc480415118368 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 18 Nov 2019 17:39:09 +0100 Subject: pkg/build: produce more deterministic linux binaries There are few more dynamic variables related to kernel release tagging. Set these to known deterministic values. --- pkg/vcs/linux.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkg/vcs/linux.go') 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] { -- cgit mrf-deployment