CMakeLists.txt 392 B

12345678910
  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. list(APPEND scripts "ld/${target}/bootloader.rom.ld")
  6. target_linker_script(${COMPONENT_LIB} INTERFACE "${scripts}")
  7. target_link_libraries(${COMPONENT_LIB} INTERFACE "-u bootloader_hooks_include")