swupdate: allow luajit to enable HAVE_LUA
authorJordan Yelloz <jordan@yelloz.me>
Sun, 24 Jul 2016 23:27:36 +0000 (16:27 -0700)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 25 Oct 2016 11:46:52 +0000 (13:46 +0200)
commit515ced20087407189bc5523a2bf7c19b239cb78d
tree0c125f8ea64c9e4a7a4c1fe10f4ebccc4099a74b
parent1b0df8f23c690d9464d82f4d3e57fe2a334b5d98
swupdate: allow luajit to enable HAVE_LUA

Until now, HAVE_LUA=y was only passed when BR2_PACKAGE_LUA=y. However,
swupdate can also use LuaJIT instead of the classic Lua. Therefore,
this commit updates the package to use BR2_PACKAGE_HAS_LUAINTERPRETER
and the luainterpreter virtual package.

Note that the swupdate configuration needs to be updated separately
(via swupdate-menuconfig) to enable Lua support, and to specify the
Lua version (which should be jit-5.1 to link against LuaJIT).

Signed-off-by: Jordan Yelloz <jordan@yelloz.me>
[Thomas: use the luainterpreter virtual package, expand commit log.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/swupdate/swupdate.mk