kumquat-buildroot/package/luainterpreter/luainterpreter.mk
Peter Korsgaard 0bd23f0603 lua: always use host-lua for host-luainterpreter
Similar to how we do for openssl.

host-luainterpreter is only used by the luarocks infrastructure, and there
is afaik no specific reason why the host lua variant must match the target one.

Luajit only supports a limited number of architectures, so building it for
the host limits the architectures Buildroot can be used on (E.G. powerpc64
autobuilders).

To fix this, always use host-lua.  Slightly rework lua.mk to ensure
host-lua-5.1 is used when luajit is selected, and drop the logic for using
host-luajit.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2018-03-31 21:01:03 +02:00

24 lines
726 B
Makefile

################################################################################
#
# luainterpreter
#
################################################################################
LUAINTERPRETER_ABIVER = $(call qstrip,$(BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION))
# Lua packages often install documentation, clean that up globally
# Since luainterpreter is a virtual package, we can't use
# LUAINTERPRETER_TARGET_FINALIZE_HOOKS
ifeq ($(BR2_PACKAGE_HAS_LUAINTERPRETER),y)
define LUAINTERPRETER_REMOVE_DOC
rm -rf $(TARGET_DIR)/usr/share/lua/$(LUAINTERPRETER_ABIVER)/doc
endef
TARGET_FINALIZE_HOOKS += LUAINTERPRETER_REMOVE_DOC
endif
$(eval $(virtual-package))
$(eval $(host-virtual-package))
LUA_RUN = $(HOST_DIR)/bin/lua