Skip to content

Commit

Permalink
[nrf fromlist] cmake: reports: Fix file prefix for tfm/bl2
Browse files Browse the repository at this point in the history
Fixes the prefix for these files to not have _report in them

Upstream PR #: 86067

Signed-off-by: Jamie McCrae <[email protected]>
  • Loading branch information
nordicjm committed Feb 25, 2025
1 parent 2bdfdda commit dab6e40
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cmake/reports/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ add_custom_target(
)

if(CONFIG_BUILD_WITH_TFM)
foreach(report ram_report rom_report)
foreach(report ram rom)
add_custom_target(
tfm_${report}
tfm_${report}_report
${PYTHON_EXECUTABLE}
${ZEPHYR_BASE}/scripts/footprint/size_report
-k $<TARGET_PROPERTY:tfm,TFM_S_ELF_FILE>
Expand All @@ -46,7 +46,7 @@ if(CONFIG_BUILD_WITH_TFM)
${workspace_arg}
-d ${report_depth}
--json tfm_${report}.json
${flag_for_${report}}
${flag_for_${report}_report}
DEPENDS tfm
USES_TERMINAL
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
Expand All @@ -60,9 +60,9 @@ if(CONFIG_BUILD_WITH_TFM)
endif()

if(CONFIG_TFM_BL2)
foreach(report ram_report rom_report)
foreach(report ram rom)
add_custom_target(
bl2_${report}
bl2_${report}_report
${PYTHON_EXECUTABLE}
${ZEPHYR_BASE}/scripts/footprint/size_report
-k $<TARGET_PROPERTY:tfm,BL2_ELF_FILE>
Expand All @@ -71,7 +71,7 @@ if(CONFIG_TFM_BL2)
${workspace_arg}
-d ${report_depth}
--json bl2_${report}.json
${flag_for_${report}}
${flag_for_${report}_report}
DEPENDS tfm
USES_TERMINAL
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
Expand Down

0 comments on commit dab6e40

Please sign in to comment.