]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
buildman: Set up bsettings outside the control module
authorSimon Glass <sjg@chromium.org>
Sat, 6 Sep 2014 01:00:14 +0000 (19:00 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 9 Sep 2014 22:38:28 +0000 (16:38 -0600)
Move the bsettings code back to the main buildman.py file, so we can do
something different when testing.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/buildman/buildman.py
tools/buildman/control.py

index 6771c862d34806e61eb907732459d1bfc66f7896..d0afeda6c07734a7d7505757a437818a3ed25df7 100755 (executable)
@@ -19,6 +19,7 @@ sys.path.append(os.path.join(our_path, '../patman'))
 
 # Our modules
 import board
+import bsettings
 import builder
 import checkpatch
 import cmdline
@@ -59,5 +60,6 @@ if options.test:
 
 # Build selected commits for selected boards
 else:
+    bsettings.Setup(options.config_file)
     ret_code = control.DoBuildman(options, args)
     sys.exit(ret_code)
index 213e235a11304befcad3fe547c3be877709ec667..c8eeb6ac45c1ff93de866488dd681b944d73ae72 100644 (file)
@@ -101,7 +101,6 @@ def DoBuildman(options, args, toolchains=None, make_func=None):
 
     gitutil.Setup()
 
-    bsettings.Setup(options.config_file)
     options.git_dir = os.path.join(options.git, '.git')
 
     if not toolchains: