|
@@ -1,11 +1,12 @@
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
|
|
|
|
-list(APPEND srcs "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(original_srcs "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")
|
|
|
|
|
+
|
|
|
|
|
+list(APPEND srcs "spiffs_api.c" ${original_srcs})
|
|
|
|
|
|
|
|
if(NOT ${target} STREQUAL "linux")
|
|
if(NOT ${target} STREQUAL "linux")
|
|
|
list(APPEND pr bootloader_support esptool_py vfs)
|
|
list(APPEND pr bootloader_support esptool_py vfs)
|
|
@@ -21,3 +22,6 @@ idf_component_register(SRCS ${srcs}
|
|
|
if(CMAKE_C_COMPILER_ID MATCHES "GNU")
|
|
if(CMAKE_C_COMPILER_ID MATCHES "GNU")
|
|
|
set_source_files_properties(spiffs/src/spiffs_nucleus.c PROPERTIES COMPILE_FLAGS -Wno-stringop-truncation)
|
|
set_source_files_properties(spiffs/src/spiffs_nucleus.c PROPERTIES COMPILE_FLAGS -Wno-stringop-truncation)
|
|
|
endif()
|
|
endif()
|
|
|
|
|
+
|
|
|
|
|
+# Upstream SPIFFS code uses format specifiers in debug logging macros inconsistently
|
|
|
|
|
+set_source_files_properties(${original_srcs} PROPERTIES COMPILE_FLAGS -Wno-format)
|