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-02-27 02:54:03 -05:00
|
|
|
if(CONFIG_IDF_TARGET_ESP32C5_BETA3_VERSION)
|
|
|
|
set(target_folder "esp32c5/beta3")
|
|
|
|
elseif(CONFIG_IDF_TARGET_ESP32C5_MP_VERSION)
|
|
|
|
set(target_folder "esp32c5/mp")
|
|
|
|
else()
|
|
|
|
set(target_folder "${target}")
|
|
|
|
endif()
|
|
|
|
|
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")
|