diff options
author | Simon Glass <sjg@chromium.org> | 2023-10-26 14:31:10 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-11-07 14:48:19 -0500 |
commit | dc314185be49bfceb63591bd38b14f28ccf9f9fb (patch) | |
tree | 011298e1bce438f28a0aa6e0607ab95134974299 /tools/buildman/builderthread.py | |
parent | 3af0e9556c968fc2c40e3778d8f1e668a90af92e (diff) |
buildman: Use oldconfig when adjusting the config
We cannot be sure that the new config is consistent, particularly when
changing a major item like CONFIG_CMDLINE. Use 'make oldconfig' to
check that and avoid any such problems.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/buildman/builderthread.py')
-rw-r--r-- | tools/buildman/builderthread.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/buildman/builderthread.py b/tools/buildman/builderthread.py index 6a61f64da1d..a8599c0bb2a 100644 --- a/tools/buildman/builderthread.py +++ b/tools/buildman/builderthread.py @@ -426,6 +426,12 @@ class BuilderThread(threading.Thread): # Now do the build, if everything looks OK if result.return_code == 0: + if adjust_cfg: + oldc_args = list(args) + ['oldconfig'] + oldc_result = self.make(commit, brd, 'oldconfig', cwd, + *oldc_args, env=env) + if oldc_result.return_code: + return oldc_result result = self._build(commit, brd, cwd, args, env, cmd_list, config_only) if adjust_cfg: |