From 8b898d7e3e1fb851a958f69dfef22b1698e14051 Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Sat, 29 Jul 2017 16:22:46 -0400 Subject: [PATCH] Move loop over filesystem compilation to own file --- init2.lua | 9 +-------- pushall.sh | 1 + 2 files changed, 2 insertions(+), 8 deletions(-) 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 -- 2.50.1