From 59e76a7ba988a5ae523a5b0bb77eb539200e310e Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Sun, 31 May 2020 22:51:04 +0100 Subject: [PATCH] mklfs: create .zip suitable for submission to TerryE's remote LFS compiler --- mklfs.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mklfs.sh b/mklfs.sh index c122c95..fe80a36 100755 --- a/mklfs.sh +++ b/mklfs.sh @@ -32,4 +32,11 @@ mkdir _lfs_build # done cp ${SOURCES[@]} _lfs_build/ -(cd _lfs_build; $LUACROSS -f *.lua) +if [ -z "${LUACROSS-}" ]; then + OZF=lamplfs.zip + (cd _lfs_build; zip ${OZF} *.lua) + echo "Please send _lfs_build/${OZF} to https://blog.ellisons.org.uk/article/nodemcu/a-lua-cross-compile-web-service/" +else + echo "Compiling image locally..." + (cd _lfs_build; $LUACROSS -f *.lua) +fi -- 2.50.1