[Buildroot] [RFC] lua: always use host-lua for host-luainterpreter
thomas.petazzoni at bootlin.com
Sat Mar 31 19:02:53 UTC 2018
On Sat, 21 Oct 2017 22:54:57 +0200, Peter Korsgaard wrote:
> 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
> 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
> Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
This patch was from October 2017, I pinged François on January 2018,
and got no feedback. I did a final test with the following defconfig:
# BR2_TOOLCHAIN_EXTERNAL_HAS_THREADS_DEBUG is not set
# BR2_PACKAGE_BUSYBOX is not set
# BR2_TARGET_ROOTFS_TAR is not set
Which exercises the two places where host-luainterpreter is used:
- The prosody package
- The luarocks package infrastructure
And the build was successful.
So I've applied this patch.
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
More information about the buildroot