Skip to content

Commit 3dfbe13

Browse files
author
Veijo Pesonen
committed
LittleFSv2: Bring in v2.2
1 parent 72d1918 commit 3dfbe13

Some content is hidden

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

70 files changed

+27035
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
littlefs/emubd/
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)