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 <grzegorz.swiderski@nordicsemi.no>
This commit is contained in:
Grzegorz Swiderski 2024-01-13 13:02:56 +01:00 committed by Carles Cufí
commit 0b7fb57d09

View file

@ -32,7 +32,7 @@ macro(toolchain_ld_relocation)
-b ${MEM_RELOCATION_SRAM_BSS_LD}
-c ${MEM_RELOCATION_CODE}
--default_ram_region ${MEM_REGION_DEFAULT_RAM}
DEPENDS app kernel ${ZEPHYR_LIBS_PROPERTY}
DEPENDS app kernel ${ZEPHYR_LIBS_PROPERTY} ${DICT_FILE}
)
add_library(code_relocation_source_lib STATIC ${MEM_RELOCATION_CODE})