From mboxrd@z Thu Jan 1 00:00:00 1970 From: Masahiro Yamada Date: Fri, 22 Aug 2014 14:33:41 +0900 Subject: [U-Boot] [PATCH 2/2] buildman: run genboardscfg.py all the time In-Reply-To: <1408685621-12867-1-git-send-email-yamada.m@jp.panasonic.com> References: <1408685621-12867-1-git-send-email-yamada.m@jp.panasonic.com> Message-ID: <1408685621-12867-3-git-send-email-yamada.m@jp.panasonic.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- tools/buildman/control.py | 10 ++++------ 1 file 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')) -- 1.9.1