]> hydra-www.ietfng.org Git - acmetensortoys-esp-lua_ctfws/commitdiff
Move loop over filesystem compilation to own file
authorNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Sat, 29 Jul 2017 20:22:46 +0000 (16:22 -0400)
committerNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Mon, 31 Jul 2017 11:59:13 +0000 (07:59 -0400)
init2.lua
pushall.sh

index 127a59fa0d8645c7d43fd01ba7b07fa510bc233d..fea49b4a654f768b330aab7fc1f26fabda3686b8 100644 (file)
--- 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
index 98de23bed967bbdf26418073bec143704a35df6e..bf96177cedf0806bee159d7f085e54ab0a5d5804 100755 (executable)
@@ -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