CMake: fix some issues for CMake

This commit is contained in:
xutao
2021-01-06 21:43:40 +08:00
parent 86e451fac0
commit 3dc41ff14c
3 changed files with 6 additions and 13 deletions

View File

@ -53,7 +53,7 @@ else()
"hwcrypto/sha.c")
set(COMPONENT_ADD_INCLUDEDIRS "include")
set(COMPONENT_REQUIRES driver tcpip_adapter esp_event efuse)
set(COMPONENT_REQUIRES driver tcpip_adapter esp_event efuse esp_debug)
# driver is a public requirement because esp_sleep.h uses gpio_num_t & touch_pad_t
# tcpip_adapter is a public requirement because esp_event.h uses tcpip_adapter types
# app_update is added here because cpu_start.c uses esp_ota_get_app_description() function.

View File

@ -1,13 +1,6 @@
idf_build_get_property(target IDF_TARGET)
set(COMPONENT_SRCS "src/esp_debug.c")
set(COMPONENT_ADD_INCLUDEDIRS "include")
set(srcs "src/esp_debug.c")
set(COMPONENT_PRIV_REQUIRES "lwip" "app_update" "esp32")
set(include_dirs
lwip/port/esp32/include
)
idf_component_register(SRCS "${srcs}"
INCLUDE_DIRS include
PRIV_INCLUDE_DIRS
REQUIRES esp_event lwip
PRIV_REQUIRES "${target}")
register_component()

View File

@ -1,7 +1,7 @@
set(COMPONENT_PRIV_INCLUDEDIRS "include_core_dump")
set(COMPONENT_ADD_INCLUDEDIRS "include")
set(COMPONENT_REQUIRES)
set(COMPONENT_PRIV_REQUIRES spi_flash)
set(COMPONENT_PRIV_REQUIRES spi_flash app_update)
set(COMPONENT_ADD_LDFRAGMENTS linker.lf)
set(COMPONENT_SRCS "src/core_dump_common.c"
"src/core_dump_flash.c"