mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
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: bc750bca12
("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>
This commit is contained in:
parent
163b7641f8
commit
70f6813985
1 changed files with 2 additions and 0 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Reference in a new issue