We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22b509a commit df075eeCopy full SHA for df075ee
components/file_system/CMakeLists.txt
@@ -1,4 +1,13 @@
1
+# Determine whether file_system is fetched from component registry or from local path
2
+idf_build_get_property(build_components BUILD_COMPONENTS)
3
+if(file_system IN_LIST build_components)
4
+ set(required_littlefs_name esp_littlefs) # Local component
5
+else()
6
+ set(required_littlefs_name littlefs) # Managed component
7
+endif()
8
+
9
10
idf_component_register(
11
INCLUDE_DIRS "include"
12
SRC_DIRS "src"
- REQUIRES base_component esp_littlefs spi_flash)
13
+ REQUIRES base_component ${required_littlefs_name} spi_flash)
0 commit comments