mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-30 22:56:33 +00:00
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>
This commit is contained in:
parent
1b0df8f23c
commit
515ced2008
@ -39,8 +39,8 @@ else
|
|||||||
SWUPDATE_MAKE_ENV += HAVE_LIBCURL=n
|
SWUPDATE_MAKE_ENV += HAVE_LIBCURL=n
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_LUA),y)
|
ifeq ($(BR2_PACKAGE_HAS_LUAINTERPRETER),y)
|
||||||
SWUPDATE_DEPENDENCIES += lua host-pkgconf
|
SWUPDATE_DEPENDENCIES += luainterpreter host-pkgconf
|
||||||
SWUPDATE_MAKE_ENV += HAVE_LUA=y
|
SWUPDATE_MAKE_ENV += HAVE_LUA=y
|
||||||
else
|
else
|
||||||
SWUPDATE_MAKE_ENV += HAVE_LUA=n
|
SWUPDATE_MAKE_ENV += HAVE_LUA=n
|
||||||
|
Loading…
x
Reference in New Issue
Block a user