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:
parent
460b6ef122
commit
0b7fb57d09
1 changed files with 1 additions and 1 deletions
|
@ -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})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue