Merge pull request #822 from NeoRaider/staging-dir-host
luci-base: use default install paths for host utils (again)
This commit is contained in:
commit
3af8b3c5b6
2 changed files with 4 additions and 6 deletions
3
luci.mk
3
luci.mk
|
@ -150,8 +150,7 @@ LUCI_LIBRARYDIR = $(LUA_LIBRARYDIR)/luci
|
||||||
|
|
||||||
define SrcDiet
|
define SrcDiet
|
||||||
$(FIND) $(1) -type f -name '*.lua' | while read src; do \
|
$(FIND) $(1) -type f -name '*.lua' | while read src; do \
|
||||||
if $(STAGING_DIR)/host/bin/lua $(STAGING_DIR)/host/bin/LuaSrcDiet \
|
if LuaSrcDiet --noopt-binequiv -o "$$$$src.o" "$$$$src"; \
|
||||||
--noopt-binequiv -o "$$$$src.o" "$$$$src"; \
|
|
||||||
then mv "$$$$src.o" "$$$$src"; fi; \
|
then mv "$$$$src.o" "$$$$src"; fi; \
|
||||||
done
|
done
|
||||||
endef
|
endef
|
||||||
|
|
|
@ -37,10 +37,9 @@ define Host/Compile
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Host/Install
|
define Host/Install
|
||||||
$(INSTALL_DIR) $(STAGING_DIR)/host/bin
|
$(INSTALL_DIR) $(1)/bin
|
||||||
$(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
|
$(INSTALL_BIN) src/po2lmo $(1)/bin/po2lmo
|
||||||
$(INSTALL_BIN) src/po2lmo $(STAGING_DIR_HOST)/bin/po2lmo
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/bin/LuaSrcDiet.lua $(1)/bin/LuaSrcDiet
|
||||||
$(INSTALL_BIN) $(HOST_BUILD_DIR)/bin/LuaSrcDiet.lua $(STAGING_DIR)/host/bin/LuaSrcDiet
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call HostBuild))
|
$(eval $(call HostBuild))
|
||||||
|
|
Loading…
Reference in a new issue