package/lua: properly handle legacy for removed version

Commit "297613f1c7 package/lua: remove 5.2.x version" tried to add
legacy handling but the new symbols are part of a choice, and Kconfig
does not enforce the select of a option from a choice.

Update the legacy entry for 2019.02, following the example described in
the beginning of the file.

Cc: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Ricardo Martincoski 2022-11-27 10:07:34 -03:00 committed by Peter Korsgaard
parent eb8f38891b
commit f461543d9c
2 changed files with 2 additions and 1 deletions

View File

@ -2224,9 +2224,9 @@ config BR2_PACKAGE_FFTW_PRECISION_QUAD
config BR2_PACKAGE_LUA_5_2 config BR2_PACKAGE_LUA_5_2
bool "Lua 5.2.x version removed" bool "Lua 5.2.x version removed"
select BR2_LEGACY select BR2_LEGACY
select BR2_PACKAGE_LUA_5_3
help help
The Lua 5.2.x version was removed. The Lua 5.2.x version was removed.
# Note: BR2_PACKAGE_LUA_5_2 is still referenced from package/lua/Config.in
config BR2_TARGET_GENERIC_PASSWD_MD5 config BR2_TARGET_GENERIC_PASSWD_MD5
bool "target passwd md5 format support has been removed" bool "target passwd md5 format support has been removed"

View File

@ -14,6 +14,7 @@ config BR2_PACKAGE_PROVIDES_LUAINTERPRETER
choice choice
prompt "Lua Version" prompt "Lua Version"
default BR2_PACKAGE_LUA_5_3 if BR2_PACKAGE_LUA_5_2 # legacy
default BR2_PACKAGE_LUA_5_4 default BR2_PACKAGE_LUA_5_4
help help
Select the version of Lua API/ABI you wish to use. Select the version of Lua API/ABI you wish to use.