aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTom Rini2019-11-19 15:14:33 -0500
committerTom Rini2019-11-23 14:53:48 -0500
commit70f681398521c2ec2a75f612c04c506a0696c3b9 (patch)
tree8d90e4aa88754918b3c72d9c8067097c927d1b74 /tools
parent163b7641f8d039ecf84abb8ac1ed9eff655c14e4 (diff)
buildman: Fix problem with non-existent output directories
Now that we have buildman telling genboards.cfg to use an output directory we need to ensure that it exists. Cc: Bin Meng <bmeng.cn@gmail.com> Cc: Simon Glass <sjg@chromium.org> Fixes: bc750bca1246 ("tools: buildman: Honor output directory when generating boards.cfg") Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/buildman/control.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/buildman/control.py b/tools/buildman/control.py
index 216012d0016..c55a65d0c30 100644
--- a/tools/buildman/control.py
+++ b/tools/buildman/control.py
@@ -201,6 +201,8 @@ def DoBuildman(options, args, toolchains=None, make_func=None, boards=None,
# Work out what subset of the boards we are building
if not boards:
+ if not os.path.exists(options.output_dir):
+ os.makedirs(options.output_dir)
board_file = os.path.join(options.output_dir, 'boards.cfg')
genboardscfg = os.path.join(options.git, 'tools/genboardscfg.py')
status = subprocess.call([genboardscfg, '-o', board_file])