mirror of https://github.com/arendst/Tasmota.git
Update obj-dump.py to support more boards
and adding flag to demangle.
This commit is contained in:
parent
b98e82ae3d
commit
17f3e9fab7
|
@ -3,7 +3,16 @@
|
||||||
Import('env')
|
Import('env')
|
||||||
|
|
||||||
def obj_dump_after_elf(source, target, env):
|
def obj_dump_after_elf(source, target, env):
|
||||||
|
platform = env.PioPlatform()
|
||||||
|
board = env.BoardConfig()
|
||||||
|
mcu = board.get("build.mcu", "esp32")
|
||||||
|
|
||||||
print("Create firmware.asm")
|
print("Create firmware.asm")
|
||||||
env.Execute("xtensa-lx106-elf-objdump "+ "-D " + str(target[0]) + " > "+ "${PROGNAME}.asm")
|
if mcu == "esp8266":
|
||||||
|
env.Execute("xtensa-lx106-elf-objdump "+ "-D -C " + str(target[0]) + " > "+ "$BUILD_DIR/${PROGNAME}.asm")
|
||||||
|
if mcu == "esp32":
|
||||||
|
env.Execute("xtensa-esp32-elf-objdump "+ "-D -C " + str(target[0]) + " > "+ "$BUILD_DIR/${PROGNAME}.asm")
|
||||||
|
if mcu == "esp32c3":
|
||||||
|
env.Execute("riscv32-esp-elf-objdump "+ "-D -C " + str(target[0]) + " > "+ "$BUILD_DIR/${PROGNAME}.asm")
|
||||||
|
|
||||||
env.AddPostAction("$BUILD_DIR/${PROGNAME}.elf", [obj_dump_after_elf])
|
env.AddPostAction("$BUILD_DIR/${PROGNAME}.elf", [obj_dump_after_elf])
|
||||||
|
|
Loading…
Reference in New Issue