]> git.sur5r.net Git - u-boot/commitdiff
buildman: adjust for Kconfig
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Wed, 30 Jul 2014 05:08:22 +0000 (14:08 +0900)
committerTom Rini <trini@ti.com>
Wed, 30 Jul 2014 18:42:02 +0000 (14:42 -0400)
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>
tools/buildman/board.py
tools/buildman/builder.py
tools/buildman/control.py

index 5172a473e35333296b97eb1a4bb6dfa79a6f51a0..7bcc93262eba16cd0b4a0cb6eeb5371e2957e4f6 100644 (file)
@@ -17,7 +17,7 @@ class Board:
             soc: Name of SOC, or '' if none (e.g. mx31)
             vendor: Name of vendor (e.g. armltd)
             board_name: Name of board (e.g. integrator)
-            target: Target name (use make <target>_config to configure)
+            target: Target name (use make <target>_defconfig to configure)
             options: board-specific options (e.g. integratorcp:CM1136)
         """
         self.target = target
index 7de8125a8fff240a353d649a9331ee138c419877..48408ff0b14ec8ee950df9ec396721f5d6929a60 100644 (file)
@@ -199,7 +199,7 @@ class BuilderThread(threading.Thread):
             commit_upto: Commit number to build (0...n-1)
             brd: Board object to build
             work_dir: Directory to which the source will be checked out
-            do_config: True to run a make <board>_config on the source
+            do_config: True to run a make <board>_defconfig on the source
             force_build: Force a build even if one was previously done
             force_build_failures: Force a bulid if the previous result showed
                 failure
@@ -266,7 +266,7 @@ class BuilderThread(threading.Thread):
                 args.append('-s')
                 if self.builder.num_jobs is not None:
                     args.extend(['-j', str(self.builder.num_jobs)])
-                config_args = ['%s_config' % brd.target]
+                config_args = ['%s_defconfig' % brd.target]
                 config_out = ''
                 args.extend(self.builder.toolchains.GetMakeArguments(brd))
 
@@ -419,7 +419,7 @@ class BuilderThread(threading.Thread):
         work_dir = self.builder.GetThreadDir(self.thread_num)
         self.toolchain = None
         if job.commits:
-            # Run 'make board_config' on the first commit
+            # Run 'make board_defconfig' on the first commit
             do_config = True
             commit_upto  = 0
             force_build = False
index 267b7d9821229842872710345d104fe763942c0f..75b6498e651e3cfb22a986028aaf3793df975a6f 100644 (file)
@@ -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)