summaryrefslogtreecommitdiff
path: root/tools/buildman/builderthread.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-02-21 22:40:29 +0300
committerSimon Glass <sjg@chromium.org>2023-03-08 22:38:48 +0300
commitbfb708ad9987ebddd2cd8f55bf4884e4f2305234 (patch)
tree0c2b87057a453cb9342657aea39edb99bc35ffaf /tools/buildman/builderthread.py
parent93202d72d75ff2e04c14525bc8b585c5ed0d0740 (diff)
downloadu-boot-bfb708ad9987ebddd2cd8f55bf4884e4f2305234.tar.xz
buildman: Add a flag for reproducible builds
This is quite a useful thing to use when building since it avoids small size changes between commits. Add a -r flag for it. Also undefine CONFIG_LOCALVERSION_AUTO since this appends the git hash to the version string, causing every build to be slightly different. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/buildman/builderthread.py')
-rw-r--r--tools/buildman/builderthread.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/buildman/builderthread.py b/tools/buildman/builderthread.py
index dae3d4ab9f..8b88c68e5d 100644
--- a/tools/buildman/builderthread.py
+++ b/tools/buildman/builderthread.py
@@ -257,6 +257,8 @@ class BuilderThread(threading.Thread):
args.append('BINMAN_ALLOW_MISSING=1')
if self.builder.no_lto:
args.append('NO_LTO=1')
+ if self.builder.reproducible_builds:
+ args.append('SOURCE_DATE_EPOCH=0')
config_args = ['%s_defconfig' % brd.target]
config_out = ''
args.extend(self.builder.toolchains.GetMakeArguments(brd))