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
|
|
|
|
|
|
|
idf_build_get_property(target IDF_TARGET)
|
2020-11-26 03:56:13 -05:00
|
|
|
set(scripts "ld/${target}/bootloader.ld")
|
|
|
|
|
2021-04-14 22:31:33 -04:00
|
|
|
if(NOT CONFIG_IDF_TARGET_ESP32H2)
|
2020-11-26 03:56:13 -05:00
|
|
|
list(APPEND scripts "ld/${target}/bootloader.rom.ld")
|
|
|
|
endif()
|
2019-05-09 22:53:08 -04:00
|
|
|
|
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")
|