package/luainterpreter: add abi version options
authorJames Hilliard <james.hilliard1@gmail.com>
Mon, 25 May 2020 00:48:37 +0000 (18:48 -0600)
committerYann E. MORIN <yann.morin.1998@free.fr>
Mon, 27 Jul 2020 20:30:54 +0000 (22:30 +0200)
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>
package/lua/Config.in
package/luainterpreter/Config.in
package/luajit/Config.in

index ce2e439f631691d91efc24f790429963dbb6eb78..c267cb6fafc1259b47f4a307917c8194942196d3 100644 (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
 
index 7bc54d862fa76a4376f2d2f1907103ef72203997..a5973063b409be9de585d43404edd3c94fb0a7eb 100644 (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"
index f4d60015868a8d8e1a7685bd95739abbacc18ed1..8cfa85684edfdcf782d2f1e7217b30d715f3efdc 100644 (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