mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-08-06 15:15:15 +08:00
feature(script): update compiling script for new make and cmake
This commit is contained in:
@ -1,17 +1,21 @@
|
||||
set(include_dirs "include")
|
||||
|
||||
if(CONFIG_USING_SPIFFS)
|
||||
set(COMPONENT_ADD_INCLUDEDIRS "include")
|
||||
set(COMPONENT_PRIV_INCLUDEDIRS "." "spiffs/src")
|
||||
set(COMPONENT_SRCS "esp_spiffs.c"
|
||||
"spiffs_api.c"
|
||||
"spiffs/src/spiffs_cache.c"
|
||||
"spiffs/src/spiffs_check.c"
|
||||
"spiffs/src/spiffs_gc.c"
|
||||
"spiffs/src/spiffs_hydrogen.c"
|
||||
"spiffs/src/spiffs_nucleus.c")
|
||||
set(priv_include_dirs "." "spiffs/src")
|
||||
set(srcs "esp_spiffs.c"
|
||||
"spiffs_api.c"
|
||||
"spiffs/src/spiffs_cache.c"
|
||||
"spiffs/src/spiffs_check.c"
|
||||
"spiffs/src/spiffs_gc.c"
|
||||
"spiffs/src/spiffs_hydrogen.c"
|
||||
"spiffs/src/spiffs_nucleus.c")
|
||||
endif()
|
||||
|
||||
set(COMPONENT_REQUIRES "freertos" "spi_flash")
|
||||
set(COMPONENT_PRIV_REQUIRES "esp8266" "bootloader_support")
|
||||
|
||||
register_component()
|
||||
set(requires "spi_flash" "vfs")
|
||||
set(priv_requires "bootloader_support")
|
||||
|
||||
idf_component_register(SRCS "${srcs}"
|
||||
INCLUDE_DIRS "${include_dirs}"
|
||||
PRIV_INCLUDE_DIRS "${priv_include_dirs}"
|
||||
REQUIRES "${requires}"
|
||||
PRIV_REQUIRES "${priv_requires}")
|
||||
|
Reference in New Issue
Block a user