package/luainterpreter: gather the ABI version string defaults
authorYann E. MORIN <yann.morin.1998@free.fr>
Mon, 27 Jul 2020 15:33:47 +0000 (17:33 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Mon, 27 Jul 2020 20:30:58 +0000 (22:30 +0200)
Now that we have booleans to represent the Lua ABI version, and that
every Lua providers do select those, there is no longer any reason
for them to also handle the ABI version string anymore.

Move the defaults into the common luainterpreter.

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: James Hilliard <james.hilliard1@gmail.com>
Cc: Francois Perrad <francois.perrad@gadz.org>
package/lua/Config.in
package/luainterpreter/Config.in
package/luajit/Config.in

index c267cb6fafc1259b47f4a307917c8194942196d3..d6ddc708e73febb93ddf94c4d0720192b1080a1d 100644 (file)
@@ -28,10 +28,6 @@ config BR2_PACKAGE_LUA_5_3
 
 endchoice
 
-config BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION
-       default "5.1"   if BR2_PACKAGE_LUA_5_1
-       default "5.3"   if BR2_PACKAGE_LUA_5_3
-
 if BR2_PACKAGE_LUA_5_3
 config BR2_PACKAGE_LUA_32BITS
        bool "Use 32 bit numbers"
index a5973063b409be9de585d43404edd3c94fb0a7eb..d35b35ff318d28d07ec446c520763d489f8e2d50 100644 (file)
@@ -7,6 +7,8 @@ config BR2_PACKAGE_PROVIDES_LUAINTERPRETER
 
 config BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION
        string
+       default "5.1" if BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION_5_1
+       default "5.3" if BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION_5_3
 
 config BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION_5_1
        bool
index 8cfa85684edfdcf782d2f1e7217b30d715f3efdc..eb3eb01998f34f2909099d5a7b3a8dfb6bbb7230 100644 (file)
@@ -34,9 +34,6 @@ if BR2_PACKAGE_LUAJIT
 config BR2_PACKAGE_PROVIDES_LUAINTERPRETER
        default "luajit"
 
-config BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION
-       default "5.1"
-
 config BR2_PACKAGE_LUAJIT_COMPAT52
        bool "Lua 5.2 compatibility"
        help