2019-05-27 02:29:43 -04:00
|
|
|
idf_component_register(SRCS "bootloader_start.c"
|
|
|
|
REQUIRES bootloader bootloader_support)
|
2019-05-09 22:53:08 -04:00
|
|
|
|
2024-06-11 03:31:03 -04:00
|
|
|
set(target_folder "${target}")
|
2024-02-27 02:54:03 -05:00
|
|
|
|
2019-05-09 22:53:08 -04:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
2024-02-27 02:54:03 -05:00
|
|
|
set(scripts "ld/${target_folder}/bootloader.ld")
|
2020-11-26 03:56:13 -05:00
|
|
|
|
2024-02-27 02:54:03 -05:00
|
|
|
list(APPEND scripts "ld/${target_folder}/bootloader.rom.ld")
|
2019-08-07 23:44:24 -04:00
|
|
|
target_linker_script(${COMPONENT_LIB} INTERFACE "${scripts}")
|
2021-04-14 22:31:33 -04:00
|
|
|
|
|
|
|
target_link_libraries(${COMPONENT_LIB} INTERFACE "-u bootloader_hooks_include")
|