Skip to content

Commit 0b7fb57

Browse files
57300carlescufi
authored andcommitted
cmake: code_relocation: Re-run when relocation_dict.txt changes
Fix an issue where updating a `zephyr_code_relocate()` call in CMake didn't trigger regeneration of `code_relocation.c` and linker scripts. The generation command was missing a dependency on the aforementioned input text file, where the outcome of each call is cached. Signed-off-by: Grzegorz Swiderski <[email protected]>
1 parent 460b6ef commit 0b7fb57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/linker/ld/target_relocation.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ macro(toolchain_ld_relocation)
3232
-b ${MEM_RELOCATION_SRAM_BSS_LD}
3333
-c ${MEM_RELOCATION_CODE}
3434
--default_ram_region ${MEM_REGION_DEFAULT_RAM}
35-
DEPENDS app kernel ${ZEPHYR_LIBS_PROPERTY}
35+
DEPENDS app kernel ${ZEPHYR_LIBS_PROPERTY} ${DICT_FILE}
3636
)
3737

3838
add_library(code_relocation_source_lib STATIC ${MEM_RELOCATION_CODE})

0 commit comments

Comments
 (0)