2019-05-27 14:29:43 +08:00
|
|
|
idf_component_register(SRCS "bootloader_start.c"
|
|
|
|
REQUIRES bootloader bootloader_support)
|
2019-05-10 10:53:08 +08:00
|
|
|
|
|
|
|
idf_build_get_property(target IDF_TARGET)
|
2020-11-26 19:56:13 +11:00
|
|
|
set(scripts "ld/${target}/bootloader.ld")
|
|
|
|
|
2021-04-15 10:31:33 +08:00
|
|
|
if(NOT CONFIG_IDF_TARGET_ESP32H2)
|
2020-11-26 19:56:13 +11:00
|
|
|
list(APPEND scripts "ld/${target}/bootloader.rom.ld")
|
|
|
|
endif()
|
2019-05-10 10:53:08 +08:00
|
|
|
|
2019-08-08 13:44:24 +10:00
|
|
|
target_linker_script(${COMPONENT_LIB} INTERFACE "${scripts}")
|
2021-04-15 10:31:33 +08:00
|
|
|
|
|
|
|
target_link_libraries(${COMPONENT_LIB} INTERFACE "-u bootloader_hooks_include")
|