diff --git a/Firmware/build.lua b/Firmware/build.lua index ea792219..8962e403 100644 --- a/Firmware/build.lua +++ b/Firmware/build.lua @@ -99,6 +99,8 @@ function GCCToolchain(prefix, builddir, compiler_flags, linker_flags) } -- display the size tup.frule{inputs={output_name..'.elf'}, command=prefix..'size %f'} + -- generate disassembly + tup.frule{inputs={output_name..'.elf'}, command=prefix..'objdump %f -dSC > %o', outputs={output_name..'.asm'}} -- create *.hex and *.bin output formats tup.frule{inputs={output_name..'.elf'}, command=prefix..'objcopy -O ihex %f %o', outputs={output_name..'.hex'}} tup.frule{inputs={output_name..'.elf'}, command=prefix..'objcopy -O binary -S %f %o', outputs={output_name..'.bin'}}