mirror of https://github.com/arendst/Tasmota.git
No Map file is generated for ESP32
Fix error for ESP32. Scripts checks if exists and generates only in target folder if there
This commit is contained in:
parent
39440e56c2
commit
dfa2099406
|
@ -28,6 +28,7 @@ def bin_map_copy(source, target, env):
|
||||||
shutil.copy(str(target[0]), bin_file)
|
shutil.copy(str(target[0]), bin_file)
|
||||||
|
|
||||||
# copy firmware.map to map/<variant>.map
|
# 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])
|
env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", [bin_map_copy])
|
||||||
|
|
Loading…
Reference in New Issue