CHERTS wrote:dnts wrote:Great! Finally I can compile the server files! one thing I did modify in the makefile is force it to regenerate the html file system:Code: Select allhtmlflash: webpages.espfs
rm -f webpages.espfs
cd html; find | ../mkespfsimage/mkespfsimage.exe > ../webpages.espfs; cd ..
if [ $$(stat -c '%s' webpages.espfs) -gt $$(( 0x2E000 )) ]; then echo "webpages.espfs too big!"; false; fi
$(ESPTOOL) -p $(ESPPORT) write_flash 0x12000 webpages.espfs
Now I can make incremental changes and flash them.
Your code is incorrect when running target htmlflash first start will be target webpages.espfs, so it makes no sense to duplicate code.Code: Select allwebpages.espfs:
cd html; find | ../mkespfsimage/mkespfsimage.exe > ../webpages.espfs; cd ..
htmlflash: webpages.espfs
if [ $$(stat -c '%s' webpages.espfs) -gt $$(( 0x2E000 )) ]; then echo "webpages.espfs too big!"; false; fi
$(ESPTOOL) -p $(ESPPORT) write_flash 0x12000 webpages.espfs
Hi CHERTS,
I know it doesn't make sense but ALL and CLEAN do not erase the webpages.espfs file so it doesn't get regenerated when doing HTMLFLASH.. at first I had to manually erase it to force the make to rebuild it. Then I just added the complete sequence to the htmlflash (erase, remake, flash).
I don't know why (first time with make files for me..).
Nir