f461543d9c
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>
88 lines
2.0 KiB
Plaintext
88 lines
2.0 KiB
Plaintext
config BR2_PACKAGE_LUA
|
|
bool "lua"
|
|
select BR2_PACKAGE_HAS_LUAINTERPRETER
|
|
help
|
|
Lua is a powerful, fast, light-weight, embeddable scripting
|
|
language.
|
|
|
|
http://www.lua.org/
|
|
|
|
if BR2_PACKAGE_LUA
|
|
|
|
config BR2_PACKAGE_PROVIDES_LUAINTERPRETER
|
|
default "lua"
|
|
|
|
choice
|
|
prompt "Lua Version"
|
|
default BR2_PACKAGE_LUA_5_3 if BR2_PACKAGE_LUA_5_2 # legacy
|
|
default BR2_PACKAGE_LUA_5_4
|
|
help
|
|
Select the version of Lua API/ABI you wish to use.
|
|
|
|
config BR2_PACKAGE_LUA_5_1
|
|
bool "Lua 5.1.x"
|
|
select BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION_5_1
|
|
select BR2_PACKAGE_LUA_CVT_N2S
|
|
select BR2_PACKAGE_LUA_CVT_S2N
|
|
|
|
config BR2_PACKAGE_LUA_5_3
|
|
bool "Lua 5.3.x"
|
|
select BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION_5_3
|
|
|
|
config BR2_PACKAGE_LUA_5_4
|
|
bool "Lua 5.4.x"
|
|
select BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION_5_4
|
|
|
|
endchoice
|
|
|
|
if BR2_PACKAGE_LUA_5_3 || BR2_PACKAGE_LUA_5_4
|
|
config BR2_PACKAGE_LUA_32BITS
|
|
bool "Use 32 bit numbers"
|
|
default y if !BR2_ARCH_IS_64
|
|
help
|
|
Use a 32 bit data type for numbers / integers instead of the
|
|
default 64 bit type. This option is particularly attractive
|
|
for small machines and embedded systems.
|
|
|
|
endif
|
|
|
|
config BR2_PACKAGE_LUA_CVT_N2S
|
|
bool "automatic coercion from number to string"
|
|
default y # legacy
|
|
help
|
|
If unsure, say y, this is the default behavior of the Lua
|
|
interpreter. See LUA_NOCVTN2S in luaconf.h
|
|
|
|
config BR2_PACKAGE_LUA_CVT_S2N
|
|
bool "automatic coercion from string to number"
|
|
default y # legacy
|
|
help
|
|
If unsure, say y, this is the default behavior of the Lua
|
|
interpreter. See LUA_NOCVTN2S in luaconf.h
|
|
|
|
choice
|
|
prompt "Lua command-line editing"
|
|
default BR2_PACKAGE_LUA_EDITING_NONE
|
|
|
|
config BR2_PACKAGE_LUA_EDITING_NONE
|
|
bool "none"
|
|
help
|
|
None.
|
|
|
|
config BR2_PACKAGE_LUA_READLINE
|
|
bool "readline support"
|
|
select BR2_PACKAGE_READLINE
|
|
select BR2_PACKAGE_NCURSES
|
|
help
|
|
Enables command-line editing in the Lua interpreter.
|
|
|
|
config BR2_PACKAGE_LUA_LINENOISE
|
|
bool "linenoise support"
|
|
select BR2_PACKAGE_LINENOISE
|
|
help
|
|
Enables command-line editing in the Lua interpreter.
|
|
|
|
endchoice
|
|
|
|
endif
|