OVMS3-idf/components/bootloader/subproject/main/CMakeLists.txt
2019-06-11 13:06:32 +08:00

18 lines
583 B
CMake

set(COMPONENT_SRCS "bootloader_start.c")
set(COMPONENT_ADD_INCLUDEDIRS "")
set(COMPONENT_REQUIRES bootloader bootloader_support)
register_component()
idf_build_get_property(target IDF_TARGET)
target_linker_script(${COMPONENT_LIB}
"ld/${target}/bootloader.ld"
"ld/${target}/bootloader.rom.ld"
)
set(scripts
"${IDF_PATH}/components/esp_rom/${target}/ld/${target}.rom.ld"
"${IDF_PATH}/components/esp_rom/${target}/ld/${target}.rom.newlib-funcs.ld"
"${IDF_PATH}/components/${target}/ld/${target}.peripherals.ld")
target_linker_script(${COMPONENT_LIB} ${scripts})