mirror of
https://github.com/openmv/openmv.git
synced 2025-09-26 23:09:13 +08:00
tools/mkromfs: Create build dir.
Create output dir(s) if they don't exist as not all tools create them. Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
This commit is contained in:
parent
1a98175ab6
commit
c49ee0ed21
@ -168,6 +168,9 @@ def main():
|
|||||||
print(f"Error: Invalid JSON format in '{path}'. {str(e)}")
|
print(f"Error: Invalid JSON format in '{path}'. {str(e)}")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
# Create output dir(s) if they don't exist
|
||||||
|
os.makedirs(args.build_dir, exist_ok=True)
|
||||||
|
|
||||||
if args.partition is None:
|
if args.partition is None:
|
||||||
for p in romfs_cfg:
|
for p in romfs_cfg:
|
||||||
romfs_build(romfs_cfg, p, args)
|
romfs_build(romfs_cfg, p, args)
|
||||||
|
Loading…
Reference in New Issue
Block a user