mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
13 lines
438 B
CMake
13 lines
438 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")
|
|
|
|
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")
|