CMakeLists.txt 703 B

1234567891011121314151617
  1. idf_build_get_property(target IDF_TARGET)
  2. if(${target} STREQUAL "linux")
  3. return() # This component is not supported by the POSIX/Linux simulator
  4. endif()
  5. idf_component_register(SRCS "esp_bootloader_desc.c"
  6. INCLUDE_DIRS "include")
  7. if(BOOTLOADER_BUILD)
  8. # esp_bootloader_desc structure is added as an undefined symbol because otherwise the
  9. # linker will ignore this structure as it has no other files depending on it.
  10. target_link_libraries(${COMPONENT_LIB} INTERFACE "-u esp_bootloader_desc")
  11. idf_build_get_property(project_name PROJECT_NAME)
  12. message(STATUS "Bootloader project name: \"${project_name}\" version: ${CONFIG_BOOTLOADER_PROJECT_VER}")
  13. endif()