diff options
author | Per Åstrand <per.astrand@arm.com> | 2021-05-07 08:55:10 +0200 |
---|---|---|
committer | Per Åstrand <per.astrand@arm.com> | 2021-05-07 08:55:10 +0200 |
commit | b47ec6312ca33e83082734d966114903612a18fb (patch) | |
tree | 6a6e99a9ea50103838649e999ac93efaac65c23a /scripts/generate_binaries.py | |
parent | e0da7e029b618a5b701f553ffb94efe869edcdb3 (diff) | |
download | ethos-u-core-platform-b47ec6312ca33e83082734d966114903612a18fb.tar.gz |
Handle parallel builds
Change-Id: I142057dfe9429b6360fafcae4f9e1b4b8140f3d5
Diffstat (limited to 'scripts/generate_binaries.py')
-rwxr-xr-x | scripts/generate_binaries.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/generate_binaries.py b/scripts/generate_binaries.py index f206cf8..8eccc14 100755 --- a/scripts/generate_binaries.py +++ b/scripts/generate_binaries.py @@ -31,8 +31,7 @@ def generate_binaries(args): elf = elffile.ELFFile(f) for segment in elf.iter_segments(): if segment['p_type'] == 'PT_LOAD' and segment['p_filesz'] > 0: - if not os.path.exists(args.output): - os.makedirs(args.output) + os.makedirs(args.output, exist_ok=True) out = os.path.join( args.output, '%s_0x%08x.bin' % (os.path.basename(args.input), segment['p_paddr'])) |