From: Nicola Lunghi <25422924+nicola-lunghi@users.noreply.github.com> Date: Fri, 11 May 2018 15:54:45 +0000 (+0100) Subject: cmakelists: move spi_flash to COMPONENT_REQUIRES X-Git-Tag: v3.1-rc2~9^2~19^2~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed1f4e50df605fcd2dbbe38d9f445563e0f9c559;p=esp-idf cmakelists: move spi_flash to COMPONENT_REQUIRES in the include file esp_ota_ops.h "esp_partition.h" is included. This is from spi_flash so component that requires app_update also will need that this fixes this error: In file included from ../components/esp32-homie/ota.c:11:0: /esp-idf/components/app_update/include/esp_ota_ops.h:22:27: fatal error: esp_partition.h: No such file or directory Signed-off-by: Nicola Lunghi <25422924+nicola-lunghi@users.noreply.github.com> Merges https://github.com/espressif/esp-idf/pull/1947 --- diff --git a/components/app_update/CMakeLists.txt b/components/app_update/CMakeLists.txt index 44663f68ea..e1401c6859 100644 --- a/components/app_update/CMakeLists.txt +++ b/components/app_update/CMakeLists.txt @@ -1,7 +1,7 @@ set(COMPONENT_SRCDIRS ".") set(COMPONENT_ADD_INCLUDEDIRS "include") -set(COMPONENT_REQUIRES "") -set(COMPONENT_PRIV_REQUIRES bootloader_support spi_flash) +set(COMPONENT_REQUIRES spi_flash) +set(COMPONENT_PRIV_REQUIRES bootloader_support) register_component()