summaryrefslogtreecommitdiff
path: root/tools/buildman
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-08-22 14:33:41 +0900
committerTom Rini <trini@ti.com>2014-08-28 17:18:48 -0400
commit390f7035d350cc27db05ccd4f5cf9b5cbd4ea2de (patch)
tree9b633d9b5607e3430481a76d1baba113e5ed33a1 /tools/buildman
parent94ab8f411cdc124c2bfd4ce5702c3802428fa534 (diff)
downloadu-boot-imx-390f7035d350cc27db05ccd4f5cf9b5cbd4ea2de.zip
u-boot-imx-390f7035d350cc27db05ccd4f5cf9b5cbd4ea2de.tar.gz
u-boot-imx-390f7035d350cc27db05ccd4f5cf9b5cbd4ea2de.tar.bz2
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>
Diffstat (limited to 'tools/buildman')
-rw-r--r--tools/buildman/control.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/tools/buildman/control.py b/tools/buildman/control.py
index d98e50a..68ea961 100644
--- a/tools/buildman/control.py
+++ b/tools/buildman/control.py
@@ -120,12 +120,10 @@ def DoBuildman(options, args):
# Work out what subset of the boards we are building
board_file = os.path.join(options.git, 'boards.cfg')
- if not os.path.exists(board_file):
- print 'Could not find %s' % board_file
- status = subprocess.call([os.path.join(options.git,
- 'tools/genboardscfg.py')])
- if status != 0:
- sys.exit("Failed to generate boards.cfg")
+ status = subprocess.call([os.path.join(options.git,
+ 'tools/genboardscfg.py')])
+ if status != 0:
+ sys.exit("Failed to generate boards.cfg")
boards = board.Boards()
boards.ReadBoards(os.path.join(options.git, 'boards.cfg'))