Skip to content

Commit 413f073

Browse files
committed
add littlefs2 build command
1 parent f3d109c commit 413f073

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ git -C esp-idf submodule update --init --recursive
1414
```shell
1515
git clone https://github.com/m5stack/uiflow_micropython
1616
cd uiflow_micropython/m5stack
17+
make littlefs
1718
make submodules
1819
make mpy-cross
1920
make -j

m5stack/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,17 @@ nvs:
7575
python ./../tools/nvs_partition_gen.py generate partition_nvs.csv \
7676
$(BUILD)/nvs.bin 0x6000 # defined in partitions.csv
7777

78+
littlefs:
79+
cd ./../tools/littlefs && rm ./build -rf && mkdir build && cd build && \
80+
cmake .. && make -j && cp ./littlefs2 ./../prebuilt/linux
81+
7882
mpy-cross:
7983
make -C ../micropython/mpy-cross
8084

8185
# The two submodules do not belong to the same repository
8286
# micropython submodule belong to uiflow_micropython
8387
# berkeley-db-1.xx submodule belong to micropython submodule
8488
submodules:
89+
git submodule update --init ../tools/littlefs/mbed-littlefs
8590
git submodule update --init ../micropython
8691
cd ./../micropython && git submodule update --init $(addprefix ./,$(GIT_SUBMODULES)) && cd -

tools/ci.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ function ci_esp32_idf44_setup {
9292

9393
function ci_esp32_build {
9494
source esp-idf/export.sh
95+
make ${MAKEOPTS} -C m5stack littlefs
9596
make ${MAKEOPTS} -C m5stack mpy-cross
9697
make ${MAKEOPTS} -C m5stack submodules
9798
make ${MAKEOPTS} -C m5stack

0 commit comments

Comments
 (0)