mirror of
https://github.com/apache/nuttx.git
synced 2025-12-09 19:54:55 +08:00
make/disassembly: generate disassembly file
Create the nuttx.asm in the disassembly format using the objdump program. NOTE: '>', objdump doesn't take arguments for output file, but result is printed to standard out, and is redirected. Signed-off-by: fanjiangang <fanjiangang@lixiang.com> Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
@@ -45,4 +45,13 @@ function(nuttx_generate_outputs target)
|
||||
add_custom_target(${target}-bin ALL DEPENDS ${target}.bin)
|
||||
file(APPEND ${CMAKE_BINARY_DIR}/nuttx.manifest "${target}.bin\n")
|
||||
endif()
|
||||
|
||||
if(CONFIG_RAW_DISASSEMBLY)
|
||||
add_custom_command(
|
||||
OUTPUT ${target}.asm
|
||||
COMMAND ${CMAKE_OBJDUMP} -d ${target} > ${target}.asm
|
||||
DEPENDS ${target})
|
||||
add_custom_target(${target}-asm ALL DEPENDS ${target}.asm)
|
||||
file(APPEND ${CMAKE_BINARY_DIR}/nuttx.manifest "${target}.asm\n")
|
||||
endif()
|
||||
endfunction(nuttx_generate_outputs)
|
||||
|
||||
Reference in New Issue
Block a user