From d6acfca78c8f7be3b1f876bca6308f687f154d27 Mon Sep 17 00:00:00 2001 From: dongheng Date: Fri, 31 May 2019 15:03:16 +0800 Subject: [PATCH] fix(cmake): fix cmake requires --- components/esp-tls/CMakeLists.txt | 2 +- components/spi_flash/CMakeLists.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/esp-tls/CMakeLists.txt b/components/esp-tls/CMakeLists.txt index 70ce461b..89c172bc 100644 --- a/components/esp-tls/CMakeLists.txt +++ b/components/esp-tls/CMakeLists.txt @@ -2,6 +2,6 @@ set(COMPONENT_SRCS "esp_tls.c") set(COMPONENT_ADD_INCLUDEDIRS ".") set(COMPONENT_REQUIRES ssl) -set(COMPONENT_PRIV_REQUIRES lwip) +set(COMPONENT_PRIV_REQUIRES lwip http_parser) register_component() diff --git a/components/spi_flash/CMakeLists.txt b/components/spi_flash/CMakeLists.txt index 544f64e1..21f7c987 100644 --- a/components/spi_flash/CMakeLists.txt +++ b/components/spi_flash/CMakeLists.txt @@ -1,10 +1,10 @@ if(BOOTLOADER_BUILD) # Bootloader needs SPIUnlock from this file, but doesn't # need other parts of this component - set(COMPONENT_SRCDIRS src) + set(COMPONENT_SRCDIRS "src" "port") set(COMPONENT_PRIV_REQUIRES "bootloader_support") else() - set(COMPONENT_SRCDIRS src) + set(COMPONENT_SRCDIRS "src" "port") set(COMPONENT_PRIV_REQUIRES "esp8266" "freertos" "bootloader_support") endif()