2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2017-10-27 21:43:34 +08:00
|
|
|
set(flag_for_ram_report -r)
|
|
|
|
set(flag_for_rom_report -F)
|
|
|
|
|
|
|
|
foreach(report ram_report rom_report)
|
|
|
|
add_custom_target(
|
|
|
|
${report}
|
|
|
|
${PYTHON_EXECUTABLE}
|
2018-01-11 22:46:44 +08:00
|
|
|
${ZEPHYR_BASE}/scripts/footprint/size_report
|
2017-10-27 21:43:34 +08:00
|
|
|
${flag_for_${report}}
|
2017-12-12 17:50:05 +08:00
|
|
|
--objdump ${CMAKE_OBJDUMP}
|
2018-01-26 20:26:21 +08:00
|
|
|
--objcopy ${CMAKE_OBJCOPY}
|
2017-12-12 17:50:05 +08:00
|
|
|
--nm ${CMAKE_NM}
|
2017-10-27 21:43:34 +08:00
|
|
|
-o ${PROJECT_BINARY_DIR}
|
|
|
|
DEPENDS ${logical_target_for_zephyr_elf}
|
|
|
|
)
|
|
|
|
endforeach()
|