Disassemble elf file after build

pull/14/head
Alex Voinea 2021-05-12 16:29:48 +03:00 committed by DRracer
parent 12527d0e53
commit 79d9fcbd5f
1 changed files with 6 additions and 0 deletions

View File

@ -168,6 +168,12 @@ set_target_properties(firmware PROPERTIES CXX_STANDARD 14)
# generate firmware.bin file
objcopy(firmware "ihex" ".hex")
add_custom_command(
TARGET firmware
POST_BUILD
COMMAND avr-objdump ARGS -CSd firmware > firmware.txt
)
# generate linker map file
target_link_options(firmware PUBLIC -Wl,-Map=firmware.map)