Merge pull request #8205 from Jason2866/patch-2

No Map file is generated for ESP32
This commit is contained in:
Theo Arends 2020-04-17 16:32:22 +02:00 committed by GitHub
commit d8a1029c61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@ def bin_map_copy(source, target, env):
shutil.copy(str(target[0]), bin_file)
# copy firmware.map to map/<variant>.map
shutil.copy("firmware.map", map_file)
if os.path.isfile("firmware.map"):
shutil.move("firmware.map", map_file)
env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", [bin_map_copy])