diff --git a/make/host-tools.mk b/make/host-tools.mk index aa970e01..ff579a90 100644 --- a/make/host-tools.mk +++ b/make/host-tools.mk @@ -9,6 +9,7 @@ host-preqs: \ host_mkfs.jffs2 \ host_sumtool \ host_mkimage \ + host_lua \ host_zic \ host_parted \ host_mkfs.fat \ @@ -238,6 +239,25 @@ $(HOST_DIR)/bin/resize2fs: $(ARCHIVE)/e2fsprogs-$(HOST_E2FSPROGS_VER).tar.gz | $ # ----------------------------------------------------------------------------- +HOST_LUA_VER = $(LUA_VER) + +#$(ARCHIVE)/lua-$(HOST_LUA_VER).tar.gz: +# $(WGET) http://www.lua.org/ftp/lua-$(HOST_LUA_VER).tar.gz + +HOST_LUA_PATCH = lua-01-fix-build.patch + +host_lua: $(HOST_DIR)/bin/lua-$(HOST_LUA_VER) +$(HOST_DIR)/bin/lua-$(HOST_LUA_VER): $(ARCHIVE)/lua-$(HOST_LUA_VER).tar.gz | $(TARGET_DIR) + $(REMOVE)/lua-$(HOST_LUA_VER) + $(UNTAR)/lua-$(HOST_LUA_VER).tar.gz + $(CHDIR)/lua-$(HOST_LUA_VER); \ + $(call apply_patches, $(HOST_LUA_PATCH)); \ + $(MAKE) linux + install -m 0755 -D $(BUILD_TMP)/lua-$(HOST_LUA_VER)/src/lua $@ + $(REMOVE)/lua-$(HOST_LUA_VER) + +# ----------------------------------------------------------------------------- + # helper target to create ccache links (make sure to have ccache installed in /usr/bin ;) ccache: find-ccache $(CCACHE) $(HOST_DIR)/bin @ln -sf $(CCACHE) $(HOST_DIR)/bin/cc diff --git a/make/system-lua.mk b/make/system-lua.mk index d28bb08f..a1f393d4 100644 --- a/make/system-lua.mk +++ b/make/system-lua.mk @@ -33,20 +33,6 @@ $(D)/lua: $(D)/libncurses $(ARCHIVE)/lua-$(LUA_VER).tar.gz | $(TARGET_DIR) # ----------------------------------------------------------------------------- -HOST_LUA_PATCH = lua-01-fix-build.patch - -# helper for luaposix build -$(HOST_DIR)/bin/lua-$(LUA_VER): $(ARCHIVE)/lua-$(LUA_VER).tar.gz | $(TARGET_DIR) - $(REMOVE)/lua-$(LUA_VER) - $(UNTAR)/lua-$(LUA_VER).tar.gz - $(CHDIR)/lua-$(LUA_VER); \ - $(call apply_patches, $(HOST_LUA_PATCH)); \ - $(MAKE) linux - install -m 0755 -D $(BUILD_TMP)/lua-$(LUA_VER)/src/lua $@ - $(REMOVE)/lua-$(LUA_VER) - -# ----------------------------------------------------------------------------- - LUAEXPAT_VER = 1.3.0 $(ARCHIVE)/luaexpat-$(LUAEXPAT_VER).tar.gz: