Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8a10c13

Browse files
committedNov 30, 2018
Update IDF to afe4c76
1 parent feb6ca6 commit 8a10c13

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+548
-11
lines changed
 

‎tools/gen_esp32part.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import sys
3030
import hashlib
3131
import binascii
32+
import errno
3233

3334
MAX_PARTITION_LENGTH = 0xC00 # 3K for partition data (96 entries) leaves 1K in a 4K sector for signature
3435
MD5_PARTITION_BEGIN = b"\xEB\xEB" + b"\xFF" * 14 # The first 2 bytes are like magic numbers for MD5 sum
@@ -480,6 +481,16 @@ def main():
480481
raise InputError("Partitions defined in '%s' occupy %.1fMB of flash (%d bytes) which does not fit in configured flash size %dMB. Change the flash size in menuconfig under the 'Serial Flasher Config' menu." %
481482
(args.input.name, table_size / 1024.0 / 1024.0, table_size, size_mb))
482483

484+
# Make sure that the output directory is created
485+
output_dir = os.path.abspath(os.path.dirname(args.output))
486+
487+
if not os.path.exists(output_dir):
488+
try:
489+
os.makedirs(output_dir)
490+
except OSError as exc:
491+
if exc.errno != errno.EEXIST:
492+
raise
493+
483494
if input_is_binary:
484495
output = table.to_csv()
485496
with sys.stdout if args.output == '-' else open(args.output, 'w') as f:

‎tools/sdk/bin/bootloader_dio_80m.bin

1.47 KB
Binary file not shown.

0 commit comments

Comments
 (0)