CMakeLists.txt 544 B

1234567891011
  1. idf_component_register(SRCS "esp_bootloader_desc.c"
  2. INCLUDE_DIRS "include")
  3. if(BOOTLOADER_BUILD)
  4. # esp_bootloader_desc structure is added as an undefined symbol because otherwise the
  5. # linker will ignore this structure as it has no other files depending on it.
  6. target_link_libraries(${COMPONENT_LIB} INTERFACE "-u esp_bootloader_desc")
  7. idf_build_get_property(project_name PROJECT_NAME)
  8. message(STATUS "Bootloader project name: \"${project_name}\" version: ${CONFIG_BOOTLOADER_PROJECT_VER}")
  9. endif()