mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-16 23:07:00 +00:00
buildman: Detect binman reporting missing blobs
Buildman should consider a build as a success (with warnings) if missing blobs have been dealt with by binman, even though buildman itself returns and error code overall. This is how other warnings are dealt with. We cannot easily access the 103 exit code, so detect the problem in the output. With this change, missing blobs result in an exit code of 101, although they still indicate failure. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
cd6889d896
commit
35b6e53d0d
1 changed files with 5 additions and 1 deletions
|
@ -288,10 +288,14 @@ class BuilderThread(threading.Thread):
|
|||
args.append('cfg')
|
||||
result = self.Make(commit, brd, 'build', cwd, *args,
|
||||
env=env)
|
||||
if (result.return_code == 2 and
|
||||
('Some images are invalid' in result.stderr)):
|
||||
# This is handled later by the check for output in
|
||||
# stderr
|
||||
result.return_code = 0
|
||||
if adjust_cfg:
|
||||
errs = cfgutil.check_cfg_file(cfg_file, adjust_cfg)
|
||||
if errs:
|
||||
print('errs', errs)
|
||||
result.stderr += errs
|
||||
result.return_code = 1
|
||||
result.stderr = result.stderr.replace(src_dir + '/', '')
|
||||
|
|
Loading…
Add table
Reference in a new issue