luci-base: fix lua interpreter location 735/head
authorKevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
Sun, 29 May 2016 13:56:51 +0000 (14:56 +0100)
committerKevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
Fri, 3 Jun 2016 09:24:09 +0000 (10:24 +0100)
An lua interpreter is required on the building host to run the
luasrcdiet lua script.  Due to a build change, the interpreter was not
being installed to the correct location.

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
luci.mk
modules/luci-base/Makefile

diff --git a/luci.mk b/luci.mk
index 5b32dab2ffd904a346706975b4b358cf26611a71..eb034d208106e2dd72089583f4e14447dcd3db1a 100644 (file)
--- a/luci.mk
+++ b/luci.mk
@@ -150,7 +150,7 @@ LUCI_LIBRARYDIR = $(LUA_LIBRARYDIR)/luci
 
 define SrcDiet
        $(FIND) $(1) -type f -name '*.lua' | while read src; do \
-               if $(STAGING_DIR_HOST)/bin/lua $(STAGING_DIR_HOST)/bin/LuaSrcDiet \
+               if $(STAGING_DIR)/host/bin/lua $(STAGING_DIR)/host/bin/LuaSrcDiet \
                        --noopt-binequiv -o "$$$$src.o" "$$$$src"; \
                then mv "$$$$src.o" "$$$$src"; fi; \
        done
index a9c5e71cba7bb9472ff8ca72a6b9ef8da294998b..f0763cb1df51ff0f23eb821f4ab95aad5aec33d7 100644 (file)
@@ -37,9 +37,10 @@ define Host/Compile
 endef
 
 define Host/Install
+       $(INSTALL_DIR) $(STAGING_DIR)/host/bin
        $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
        $(INSTALL_BIN) src/po2lmo $(STAGING_DIR_HOST)/bin/po2lmo
-       $(INSTALL_BIN) $(HOST_BUILD_DIR)/bin/LuaSrcDiet.lua $(STAGING_DIR_HOST)/bin/LuaSrcDiet
+       $(INSTALL_BIN) $(HOST_BUILD_DIR)/bin/LuaSrcDiet.lua $(STAGING_DIR)/host/bin/LuaSrcDiet
 endef
 
 $(eval $(call HostBuild))