mirror of
https://github.com/espressif/esp-idf.git
synced 2026-06-04 20:26:38 +03:00
18 lines
595 B
CMake
18 lines
595 B
CMake
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")
|
|
if(CONFIG_ESP32P4_REV_MIN_300)
|
|
set(scripts "ld/${target_folder}/bootloader.rev3.ld")
|
|
else()
|
|
set(scripts "ld/${target_folder}/bootloader.ld")
|
|
endif()
|
|
|
|
list(APPEND scripts "ld/${target_folder}/bootloader.rom.ld")
|
|
target_linker_script(${COMPONENT_LIB} INTERFACE "${scripts}")
|
|
|
|
target_link_libraries(${COMPONENT_LIB} INTERFACE "-u bootloader_hooks_include")
|