CMakeLists.txt 439 B

12345678910111213
  1. idf_component_register(SRCS "bootloader_start.c"
  2. REQUIRES bootloader bootloader_support)
  3. idf_build_get_property(target IDF_TARGET)
  4. set(scripts "ld/${target}/bootloader.ld")
  5. if(NOT CONFIG_IDF_TARGET_ESP32H2)
  6. list(APPEND scripts "ld/${target}/bootloader.rom.ld")
  7. endif()
  8. target_linker_script(${COMPONENT_LIB} INTERFACE "${scripts}")
  9. target_link_libraries(${COMPONENT_LIB} INTERFACE "-u bootloader_hooks_include")