Fixed autoboot.

This commit is contained in:
Brad Nelson
2021-01-07 17:45:29 -08:00
parent 41e25178fb
commit 11347df9e5
4 changed files with 7 additions and 6 deletions

View File

@ -71,8 +71,7 @@ $(GEN):
POSIX_BOOT = common/boot.fs common/terminal.fs \ POSIX_BOOT = common/boot.fs common/terminal.fs \
posix/posix.fs posix/posix_highlevel.fs \ posix/posix.fs posix/posix_highlevel.fs \
common/filetools.fs posix/posix_desktop.fs \ common/filetools.fs posix/posix_desktop.fs
common/autoboot.fs
$(GEN)/posix_boot.h: common/source_to_string.js $(POSIX_BOOT) | $(GEN) $(GEN)/posix_boot.h: common/source_to_string.js $(POSIX_BOOT) | $(GEN)
echo "ok" | cat $(POSIX_BOOT) - | $< boot >$@ echo "ok" | cat $(POSIX_BOOT) - | $< boot >$@
@ -80,7 +79,9 @@ WINDOWS_BOOT = common/boot.fs common/terminal.fs windows/windows.fs
$(GEN)/windows_boot.h: common/source_to_string.js $(WINDOWS_BOOT) | $(GEN) $(GEN)/windows_boot.h: common/source_to_string.js $(WINDOWS_BOOT) | $(GEN)
echo "ok" | cat $(WINDOWS_BOOT) - | $< boot >$@ echo "ok" | cat $(WINDOWS_BOOT) - | $< boot >$@
ARDUINO_BOOT = common/boot.fs arduino/arduino.fs ARDUINO_BOOT = common/boot.fs arduino/arduino.fs \
posix/posix_highlevel.fs common/filetools.fs \
arduino/autoboot.fs
$(GEN)/arduino_boot.h: common/source_to_string.js $(ARDUINO_BOOT) | $(GEN) $(GEN)/arduino_boot.h: common/source_to_string.js $(ARDUINO_BOOT) | $(GEN)
echo "ok" | cat $(ARDUINO_BOOT) - | $< boot >$@ echo "ok" | cat $(ARDUINO_BOOT) - | $< boot >$@

View File

@ -19,4 +19,4 @@
-1 echo ! -1 echo !
115200 Serial.begin 115200 Serial.begin
100 ms 100 ms
-1 z" /" 10 SPIFFS.begin drop -1 z" /spiffs" 10 SPIFFS.begin drop

View File

@ -0,0 +1,2 @@
: autoexec ( a n -- ) s" /spiffs/autoexec.fs" ['] included catch 2drop drop ;
autoexec

View File

@ -1,2 +0,0 @@
: autoexec s" autoexec.fs" ['] included catch 2drop drop ;
autoexec