mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-22 07:01:39 +00:00
buildman: run genboardscfg.py all the time
This commit makes sure boards.cfg is up to date before starting the build tests. tools/genboardscfg.py exits immediately printing "boards.cfg is up to date. Nothing to do." when boards.cfg is already new. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
94ab8f411c
commit
390f7035d3
1 changed files with 4 additions and 6 deletions
|
@ -120,12 +120,10 @@ def DoBuildman(options, args):
|
||||||
|
|
||||||
# Work out what subset of the boards we are building
|
# Work out what subset of the boards we are building
|
||||||
board_file = os.path.join(options.git, 'boards.cfg')
|
board_file = os.path.join(options.git, 'boards.cfg')
|
||||||
if not os.path.exists(board_file):
|
status = subprocess.call([os.path.join(options.git,
|
||||||
print 'Could not find %s' % board_file
|
'tools/genboardscfg.py')])
|
||||||
status = subprocess.call([os.path.join(options.git,
|
if status != 0:
|
||||||
'tools/genboardscfg.py')])
|
sys.exit("Failed to generate boards.cfg")
|
||||||
if status != 0:
|
|
||||||
sys.exit("Failed to generate boards.cfg")
|
|
||||||
|
|
||||||
boards = board.Boards()
|
boards = board.Boards()
|
||||||
boards.ReadBoards(os.path.join(options.git, 'boards.cfg'))
|
boards.ReadBoards(os.path.join(options.git, 'boards.cfg'))
|
||||||
|
|
Loading…
Add table
Reference in a new issue