From: Nathaniel Wesley Filardo Date: Sat, 29 Jul 2017 20:22:46 +0000 (-0400) Subject: Move loop over filesystem compilation to own file X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=8b898d7e3e1fb851a958f69dfef22b1698e14051;p=acmetensortoys-esp-lua_ctfws Move loop over filesystem compilation to own file --- diff --git a/init2.lua b/init2.lua index 127a59f..fea49b4 100644 --- a/init2.lua +++ b/init2.lua @@ -1,13 +1,6 @@ -- It's early in boot, so we have plenty of RAM. Compile -- the rest of the firmware from source if it's there. -local k,v -for k,v in pairs(file.list()) do - local ix, _ = k:find("^.*%.lua$") - if ix and k ~= "init.lua" then - print("early compile",k) - node.compile(k); file.remove(k) - end -end +dofile("compileall.lc") -- Grab some configuration parameters we might need, -- notably, the LCD address diff --git a/pushall.sh b/pushall.sh index 98de23b..bf96177 100755 --- a/pushall.sh +++ b/pushall.sh @@ -5,6 +5,7 @@ set -e -u . ./host/pushcommon.sh pushsrc() { + dopushcompile util/compileall.lua dopush net/nwfmqtt.lua dopush _external/lcd1602.lua dopush examples/ctfws/ctfws.lua