summaryrefslogtreecommitdiff
path: root/tools/buildman/control.py
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-07-30 14:08:22 +0900
committerTom Rini <trini@ti.com>2014-07-30 14:42:02 -0400
commit73f30b9b8097b1a25f48fbe035f1dee3dac89317 (patch)
treedf5f7803b2532cf330065b624d5ba611545aedc7 /tools/buildman/control.py
parentbb6da87d7eba1bbd51c98a4912ee4e099d79a639 (diff)
downloadu-boot-imx-73f30b9b8097b1a25f48fbe035f1dee3dac89317.zip
u-boot-imx-73f30b9b8097b1a25f48fbe035f1dee3dac89317.tar.gz
u-boot-imx-73f30b9b8097b1a25f48fbe035f1dee3dac89317.tar.bz2
buildman: adjust for Kconfig
Use "make <board>_defconfig" instead of "make <board>_config". Invoke tools/genboardscfg.py to generate boards.cfg when it is missing. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/buildman/control.py')
-rw-r--r--tools/buildman/control.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/buildman/control.py b/tools/buildman/control.py
index 267b7d9..75b6498 100644
--- a/tools/buildman/control.py
+++ b/tools/buildman/control.py
@@ -15,6 +15,7 @@ import patchstream
import terminal
import toolchain
import command
+import subprocess
def GetPlural(count):
"""Returns a plural 's' if count is not 1"""
@@ -109,6 +110,15 @@ def DoBuildman(options, args):
sys.exit(1)
# 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:
+ print >> sys.stderr, "Failed to generate boards.cfg"
+ sys.exit(1)
+
boards = board.Boards()
boards.ReadBoards(os.path.join(options.git, 'boards.cfg'))
why_selected = boards.SelectBoards(args)