Skip to content

Commit 029109a

Browse files
authored
Merge pull request #12783 from VeijoPesonen/littlefsv2.2
LittleFSv2: Bring in v2.2
2 parents 9501ccd + 62343a2 commit 029109a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+27038
-1
lines changed

.astyleignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
^features/netsocket/ppp/source
2121
^features/storage/filesystem/fat/ChaN
2222
^features/storage/filesystem/littlefs/littlefs/
23+
^features/storage/filesystem/littlefsv2/littlefs/
2324
^features/unsupported/
2425
^hal/storage_abstraction
2526
^platform/cxxsupport

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ matrix:
121121
script:
122122
- >-
123123
git diff --name-only --diff-filter=d FETCH_HEAD..HEAD \
124-
| ( grep '.\(c\|cpp\|h\|hpp\)$' || true ) \
124+
| ( grep '.*\.\(c\|cpp\|h\|hpp\)$' || true ) \
125125
| ( grep -v -f .astyleignore || true ) \
126126
| while read file; do astyle -n --options=.astylerc "${file}"; done
127127
- git diff --exit-code --diff-filter=d --color

TESTS/configs/baremetal.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"psa-compliance-framework",
1010
"filesystem",
1111
"littlefs",
12+
"littlefs2",
1213
"mbed-trace",
1314
"device_key",
1415
"storage_tdb_internal",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
littlefs/bd/
2+
littlefs/tests/
3+
TESTS/util
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
language: python
2+
python: 2.7
3+
4+
script:
5+
# Check that example compiles
6+
- sed -n '/``` c++/,/```/{/```/d; p;}' README.md > main.cpp
7+
- PYTHONPATH=mbed-os python mbed-os/tools/make.py -t GCC_ARM -m K82F
8+
--source=. --build=BUILD/K82F/GCC_ARM -j0
9+
10+
# Check that tests compile
11+
- rm -rf main.cpp BUILD
12+
- PYTHONPATH=mbed-os python mbed-os/tools/test.py -t GCC_ARM -m K82F
13+
--source=. --build=BUILD/TESTS/K82F/GCC_ARM -j0
14+
-n 'tests*'
15+
16+
# Run littlefs functional tests
17+
- make -Clittlefs test QUIET=1
18+
19+
# Run littlefs functional tests with different configurations
20+
# Note: r/w size of 64 is default in mbed
21+
- make -Clittlefs test QUIET=1 CFLAGS+="-DLFS2_READ_SIZE=64 -DLFS2_CACHE_SIZE=64"
22+
- make -Clittlefs test QUIET=1 CFLAGS+="-DLFS2_READ_SIZE=1 -DLFS2_CACHE_SIZE=1"
23+
- make -Clittlefs test QUIET=1 CFLAGS+="-DLFS2_READ_SIZE=512 -DLFS2_CACHE_SIZE=512 -DLFS2_BLOCK_CYCLES=16"
24+
- make -Clittlefs test QUIET=1 CFLAGS+="-DLFS2_READ_SIZE=8 -DLFS2_CACHE_SIZE=16 -DLFS2_BLOCK_CYCLES=2"
25+
- make -Clittlefs test QUIET=1 CFLAGS+="-DLFS2_BLOCK_COUNT=1023 -DLFS2_LOOKAHEAD_SIZE=256"
26+
27+
install:
28+
# Get arm-none-eabi-gcc
29+
- sudo add-apt-repository -y ppa:team-gcc-arm-embedded/ppa
30+
- sudo apt-get update -qq
31+
- sudo apt-get install -qq gcc-arm-embedded
32+
# Get dependencies
33+
- git clone https://github.com/armmbed/mbed-os.git
34+
# Install python dependencies
35+
- pip install -r mbed-os/requirements.txt
36+
- sudo apt-get install python3 python3-pip
37+
- sudo pip3 install toml
38+
# Check versions
39+
- arm-none-eabi-gcc --version
40+
- gcc --version

0 commit comments

Comments
 (0)