Skip to content

Commit 1bbf571

Browse files
committed
Fix: fix path does not exist bug
1 parent 413f073 commit 1bbf571

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

m5stack/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,12 @@ flash: all
6868
write_flash 0x1000 $(BUILD)/uiflow-$(GIT_VERSION).bin
6969

7070
fs:
71+
[ -d $(BUILD) ] || mkdir -p $(BUILD)
7172
./../tools/littlefs/prebuilt/linux/littlefs2 -c -v -i ./fs \
7273
-o $(BUILD)/fs.bin -s 0x14e000 # defined in partitions.csv
7374

7475
nvs:
76+
[ -d $(BUILD) ] || mkdir -p $(BUILD)
7577
python ./../tools/nvs_partition_gen.py generate partition_nvs.csv \
7678
$(BUILD)/nvs.bin 0x6000 # defined in partitions.csv
7779

0 commit comments

Comments
 (0)