]> granicus.if.org Git - esp-idf/commitdiff
cmakelists: move spi_flash to COMPONENT_REQUIRES
authorNicola Lunghi <25422924+nicola-lunghi@users.noreply.github.com>
Fri, 11 May 2018 15:54:45 +0000 (16:54 +0100)
committerAngus Gratton <gus@projectgus.com>
Tue, 29 May 2018 06:34:45 +0000 (16:34 +1000)
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

components/app_update/CMakeLists.txt

index 44663f68eade5c8b8fa68fa37f4a97b4b1d94624..e1401c68590b3f0dc9d94f933f8ef19e12408b85 100644 (file)
@@ -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()