Files
esp-idf/components/esp_https_ota/CMakeLists.txt
Tom A. Wagner a5cef637ae fix(esp_https_ota): Add missing requirement to bootloader_support component
The `esp_https_ota.h` header includes `bootloader_common.h` from the
`bootloader_support` component, but the components CMakeLists.txt does not
depend on the `bootloader_support` component.
This causes compilation to fail when the header is included, unless the
component that the header belongs already depends on `bootloader_support`.

As the header is only needed in the `esp_https_ota.c` source file,
add a `PRIV_REQUIRES` for `bootloader_support` and move the include into the
.c file.
2026-07-23 13:14:45 +02:00

14 lines
521 B
CMake

idf_build_get_property(target IDF_TARGET)
if(${target} STREQUAL "linux")
return() # This component is not supported by the POSIX/Linux simulator
endif()
idf_component_register(SRCS "src/esp_https_ota.c"
INCLUDE_DIRS "include"
REQUIRES esp_http_client esp_bootloader_format esp_app_format
esp_event esp_partition
PRIV_REQUIRES log app_update bootloader_support efuse)
idf_define_esp_err_codes(HEADERS include/esp_https_ota.h)