summaryrefslogtreecommitdiff
path: root/tools/buildman/builderthread.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-02-21 22:40:28 +0300
committerSimon Glass <sjg@chromium.org>2023-03-08 22:38:48 +0300
commit93202d72d75ff2e04c14525bc8b585c5ed0d0740 (patch)
tree22653175af620a43799612c424316397737834fd /tools/buildman/builderthread.py
parentcd37d5bccf63e75af395dd5e3b5dd21abbd86881 (diff)
downloadu-boot-93202d72d75ff2e04c14525bc8b585c5ed0d0740.tar.xz
buildman: Support disabling LTO
This cuts down build performance considerably and is not always needed, when checking for build errors, etc. Add a flag to disable it. 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 7ba9a856dd..dae3d4ab9f 100644
--- a/tools/buildman/builderthread.py
+++ b/tools/buildman/builderthread.py
@@ -255,6 +255,8 @@ class BuilderThread(threading.Thread):
args.append('KCFLAGS=-Werror')
if self.builder.allow_missing:
args.append('BINMAN_ALLOW_MISSING=1')
+ if self.builder.no_lto:
+ args.append('NO_LTO=1')
config_args = ['%s_defconfig' % brd.target]
config_out = ''
args.extend(self.builder.toolchains.GetMakeArguments(brd))