mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 21:21:37 +00:00
buildman: Avoid hanging when the config changes
Something has changed in the last several month such that when buildman builds U-Boot incrementally and a new CONFIG option has been added to the Kconfig, the build hanges waiting for input: Test new config (NEW_CONFIG) [N/y/?] (NEW) Since binamn does not connect the build's stdin to anything this waits on stdin to the build thread, which never comes. Eventually I suspect all the threads end up in this state and the build does not progress. Fix this by passing /dev/null as input to the build. That way, if there is a new CONFIG, the build will stop (and fail): Test new config (NEW_CONFIG) [N/y/?] (NEW) Error in reading or end of file. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
3eb992a481
commit
e62a24ce27
1 changed files with 1 additions and 1 deletions
|
@ -408,7 +408,7 @@ class Builder:
|
|||
"""
|
||||
cmd = [self.gnu_make] + list(args)
|
||||
result = command.RunPipe([cmd], capture=True, capture_stderr=True,
|
||||
cwd=cwd, raise_on_error=False, **kwargs)
|
||||
cwd=cwd, raise_on_error=False, infile='/dev/null', **kwargs)
|
||||
if self.verbose_build:
|
||||
result.stdout = '%s\n' % (' '.join(cmd)) + result.stdout
|
||||
result.combined = '%s\n' % (' '.join(cmd)) + result.combined
|
||||
|
|
Loading…
Add table
Reference in a new issue