[Buildroot] [PATCH v4] moarvm: new package

François Perrad francois.perrad at gadz.org
Sat Jun 6 16:17:50 UTC 2015


2015-06-06 17:05 GMT+02:00 Thomas Petazzoni
<thomas.petazzoni at free-electrons.com>:
> Dear François Perrad,
>
> On Sat, 6 Jun 2015 11:03:38 +0200, François Perrad wrote:
>
>> > +MOARVM_DEPENDENCIES = host-luajit libuv libatomic_ops
>>
>> host-luajit seems overkill.
>
> Why? Lua is not part of the core dependencies of Buildroot, which are
> mandatory to run Buildroot. So if it's not part of these core
> dependencies, and used for the build process of moarvm, then it should
> be added as a dependency of that package.
>
> Otherwise the build will fail for users that don't have Luajit
> installed on their machine, like is the case for several of the
> autobuilders.
>

Moarvm reuses [DynASM](http://luajit.org/dynasm.html), the JIT engine of LuaJIT.
DynASM needs a Lua interpreter.
This Lua interpreter could be an external interpreter or minilua which
is included in DynASM
(see https://github.com/MoarVM/dynasm/blob/master/minilua.c).
minilua is used in a bootstrap step and is never installed.

Moarvm could be built without --lua option, in this case, the minilua
in Moarvm is compiled and used.

Moarvm could be built with --lua=$(HOST_DIR)/usr/bin/luajit, in this
case, host-luajit is built first, which includes the minilua in
LuaJIT.

In both case, a minilua is built.
host-luajit just slows down the process.

François

> Best regards,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com


More information about the buildroot mailing list