In preparation for the introduction of Lua 5.4, we need to adjust the
dependency of the lua-compat53 package: it only makes sense when a Lua
5.1-compatible interpreter is available (either Lua 5.1 or LuaJIT). We
use the recently introduced BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION_5_1
symbol to achieve this.
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
config BR2_PACKAGE_LUA_COMPAT53
bool "lua-compat53"
- depends on !BR2_PACKAGE_LUA_5_3
+ depends on BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION_5_1
help
Compatibility module providing Lua-5.3-style APIs for Lua 5.2
and 5.1.
select BR2_PACKAGE_LPEG # runtime
select BR2_PACKAGE_LUA_BASEXX # runtime
select BR2_PACKAGE_LUA_BINARYHEAP # runtime
- select BR2_PACKAGE_LUA_COMPAT53 if !BR2_PACKAGE_LUA_5_3 # runtime
+ select BR2_PACKAGE_LUA_COMPAT53 if BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION_5_1 # runtime
select BR2_PACKAGE_LUA_CQUEUES # runtime
select BR2_PACKAGE_LUA_FIFO # runtime
select BR2_PACKAGE_LUA_LPEG_PATTERNS # runtime