]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
buildman: Fix problem with non-existent output directories
authorTom Rini <trini@konsulko.com>
Tue, 19 Nov 2019 20:14:33 +0000 (15:14 -0500)
committerTom Rini <trini@konsulko.com>
Sat, 23 Nov 2019 19:53:48 +0000 (14:53 -0500)
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>
tools/buildman/control.py

index 216012d00168f25b4ce6e41c40212f2b90535f73..c55a65d0c30b297b6097021909f363662a75c41b 100644 (file)
@@ -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])