From 0a248cdfd75b326d401aa770e4ee09a0ba6976b1 Mon Sep 17 00:00:00 2001 From: Gregor Hartmann Date: Wed, 15 Aug 2018 10:48:23 +0200 Subject: [PATCH] Fix output filename of LFS image built in tools (#2459) --- tools/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/Makefile b/tools/Makefile index 8a784ce3..38c23e13 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -73,16 +73,16 @@ spiffsimg/spiffsimg: spiffsscript: remove-image LFSimage spiffsimg/spiffsimg rm -f ./spiffsimg/spiffs.lst @echo "" >> ./spiffsimg/spiffs.lst - @$(foreach f, $(SPIFFSFILES), echo "import $(FSSOURCE)$(f) $(f)" >> ./spiffsimg/spiffs.lst ;) + @$(foreach f, $(SPIFFSFILES), echo "import $(FSSOURCE)/$(f) $(f)" >> ./spiffsimg/spiffs.lst ;) $(foreach sz, $(FLASHSIZE), spiffsimg/spiffsimg -f ../bin/0x%x-$(sz).img $(FLASH_SW) $(sz) -U $(FLASH_FS_LOC) -r ./spiffsimg/spiffs.lst -d; ) @$(foreach sz, $(FLASHSIZE), if [ -r ../bin/spiffs-$(sz).dat ]; then echo Built $$(cat ../bin/spiffs-$(sz).dat)-$(sz).bin; fi; ) ifneq ($(LFSSOURCES),) LFSimage: $(LFSSOURCES) - $(LUAC_CROSS) -f -o $(FSSOURCE)flash.img $(LFSSOURCES) + $(LUAC_CROSS) -f -o $(FSSOURCE)/LFS.img $(LFSSOURCES) else LFSimage: - rm -f $(FSSOURCE)flash.img + rm -f $(FSSOURCE)/LFS.img endif remove-image: