package/luainterpreter: add abi version options

Since a number of packages depend on specific ABI version that are
provided by lua and luajit packages we should have a kconfig variable
that those packages can depend on.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
James Hilliard 2020-05-24 18:48:37 -06:00 committed by Yann E. MORIN
parent afbb8b6a04
commit 97cfd0dc9f
3 changed files with 9 additions and 0 deletions

View File

@ -20,9 +20,11 @@ choice
config BR2_PACKAGE_LUA_5_1
bool "Lua 5.1.x"
select BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION_5_1
config BR2_PACKAGE_LUA_5_3
bool "Lua 5.3.x"
select BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION_5_3
endchoice

View File

@ -8,6 +8,12 @@ config BR2_PACKAGE_PROVIDES_LUAINTERPRETER
config BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION
string
config BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION_5_1
bool
config BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION_5_3
bool
config BR2_PACKAGE_PROVIDES_HOST_LUAINTERPRETER
string
default "host-lua"

View File

@ -19,6 +19,7 @@ config BR2_PACKAGE_LUAJIT
# binaries, so check if that option is supported. See
# luajit.mk for details.
select BR2_PACKAGE_HAS_LUAINTERPRETER
select BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION_5_1
select BR2_HOSTARCH_NEEDS_IA32_COMPILER if !BR2_ARCH_IS_64
help
LuaJIT implements the full set of language features defined