fix(bootloader): add a new property that contains the default linker scripts

This commit is contained in:
Omar Chebib
2024-12-16 17:35:34 +08:00
parent e02cde89dc
commit 28f1b18675
3 changed files with 7 additions and 14 deletions
@@ -1,12 +1,7 @@
idf_component_register(SRCS "bootloader_start.c"
REQUIRES bootloader bootloader_support)
set(target_folder "${target}")
idf_build_get_property(target IDF_TARGET)
set(scripts "ld/${target_folder}/bootloader.ld")
list(APPEND scripts "ld/${target_folder}/bootloader.rom.ld")
idf_build_get_property(scripts BOOTLOADER_LINKER_SCRIPT)
target_linker_script(${COMPONENT_LIB} INTERFACE "${scripts}")
target_link_libraries(${COMPONENT_LIB} INTERFACE "-u bootloader_hooks_include")