mirror of
https://github.com/candle-usb/candleLight_fw.git
synced 2025-01-28 06:02:52 +08:00
cmake: create linker map by default
This commit is contained in:
parent
7a97b303d9
commit
56e4515086
@ -211,7 +211,7 @@ function(add_target_common TGTNAME CPU_FAMILY)
|
||||
add_executable(${TGTNAME}_fw ${SOURCE_FILES})
|
||||
add_dependencies(${TGTNAME}_fw version_h)
|
||||
target_include_directories(${TGTNAME}_fw PRIVATE include/ ${CMAKE_CURRENT_BINARY_DIR})
|
||||
target_link_options(${TGTNAME}_fw PRIVATE -T ${CPU_FAMILY}_processed.ld)
|
||||
target_link_options(${TGTNAME}_fw PRIVATE -T ${CPU_FAMILY}_processed.ld LINKER:-Map=${TGTNAME}_fw.map)
|
||||
make_bin_file(${TGTNAME}_fw)
|
||||
dfu_flash(${TGTNAME}_fw)
|
||||
show_object_size(${TGTNAME}_fw)
|
||||
|
Loading…
x
Reference in New Issue
Block a user