-
-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add littlefs file system and update Sys.IO.FileSystem (#2911)
- Loading branch information
1 parent
828e15b
commit bf46e5d
Showing
229 changed files
with
16,172 additions
and
13,362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
FROM ghcr.io/nanoframework/dev-container-all:v2.47 | ||
FROM ghcr.io/nanoframework/dev-container-all:v2.48 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
FROM ghcr.io/nanoframework/dev-container-azure-rtos:v1.26 | ||
FROM ghcr.io/nanoframework/dev-container-azure-rtos:v1.27 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
FROM ghcr.io/nanoframework/dev-container-chibios:v1.27 | ||
FROM ghcr.io/nanoframework/dev-container-chibios:v1.28 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
FROM ghcr.io/nanoframework/dev-container-ti:v1.22 | ||
FROM ghcr.io/nanoframework/dev-container-ti:v1.23 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# | ||
# Copyright (c) .NET Foundation and Contributors | ||
# See LICENSE file in the project root for full license information. | ||
# | ||
|
||
include(FetchContent) | ||
FetchContent_GetProperties(littlefs) | ||
|
||
# List of the required include paths | ||
list(APPEND littlefs_INCLUDE_DIRS | ||
${littlefs_SOURCE_DIR} | ||
${CMAKE_SOURCE_DIR}/targets/${RTOS}/_littlefs) | ||
|
||
set(src_LITTLEFS | ||
|
||
lfs.c | ||
lfs_util.c | ||
|
||
# HAL implementation specific to a platform | ||
# has to be included at platform level | ||
hal_littlefs.c | ||
|
||
target_littlefs.c | ||
) | ||
|
||
foreach(SRC_FILE ${src_LITTLEFS}) | ||
|
||
set(LITTLEFS_SRC_FILE SRC_FILE -NOTFOUND) | ||
|
||
find_file(LITTLEFS_SRC_FILE ${SRC_FILE} | ||
PATHS | ||
|
||
${littlefs_SOURCE_DIR} | ||
${CMAKE_SOURCE_DIR}/targets/${RTOS}/_littlefs | ||
${TARGET_BASE_LOCATION} | ||
|
||
CMAKE_FIND_ROOT_PATH_BOTH | ||
) | ||
|
||
if (BUILD_VERBOSE) | ||
message("${SRC_FILE} >> ${LITTLEFS_SRC_FILE}") | ||
endif() | ||
|
||
list(APPEND littlefs_SOURCES ${LITTLEFS_SRC_FILE}) | ||
|
||
endforeach() | ||
|
||
set_source_files_properties(${littlefs_SOURCE_DIR}/lfs.c PROPERTIES COMPILE_FLAGS -Wno-shadow) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
|
||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(littlefs DEFAULT_MSG littlefs_INCLUDE_DIRS littlefs_SOURCES) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.