1config BR2_PACKAGE_LUA 2 bool "lua" 3 select BR2_PACKAGE_HAS_LUAINTERPRETER 4 help 5 Lua is a powerful, fast, light-weight, embeddable scripting 6 language. 7 8 http://www.lua.org/ 9 10if BR2_PACKAGE_LUA 11 12config BR2_PACKAGE_PROVIDES_LUAINTERPRETER 13 default "lua" 14 15choice 16 prompt "Lua Version" 17 default BR2_PACKAGE_LUA_5_3 if BR2_PACKAGE_LUA_5_2 # legacy 18 default BR2_PACKAGE_LUA_5_4 19 help 20 Select the version of Lua API/ABI you wish to use. 21 22config BR2_PACKAGE_LUA_5_1 23 bool "Lua 5.1.x" 24 select BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION_5_1 25 select BR2_PACKAGE_LUA_CVT_N2S 26 select BR2_PACKAGE_LUA_CVT_S2N 27 28config BR2_PACKAGE_LUA_5_3 29 bool "Lua 5.3.x" 30 select BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION_5_3 31 32config BR2_PACKAGE_LUA_5_4 33 bool "Lua 5.4.x" 34 select BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION_5_4 35 36endchoice 37 38if BR2_PACKAGE_LUA_5_3 || BR2_PACKAGE_LUA_5_4 39config BR2_PACKAGE_LUA_32BITS 40 bool "Use 32 bit numbers" 41 default y if !BR2_ARCH_IS_64 42 help 43 Use a 32 bit data type for numbers / integers instead of the 44 default 64 bit type. This option is particularly attractive 45 for small machines and embedded systems. 46 47endif 48 49config BR2_PACKAGE_LUA_CVT_N2S 50 bool "automatic coercion from number to string" 51 default y # legacy 52 help 53 If unsure, say y, this is the default behavior of the Lua 54 interpreter. See LUA_NOCVTN2S in luaconf.h 55 56config BR2_PACKAGE_LUA_CVT_S2N 57 bool "automatic coercion from string to number" 58 default y # legacy 59 help 60 If unsure, say y, this is the default behavior of the Lua 61 interpreter. See LUA_NOCVTN2S in luaconf.h 62 63choice 64 prompt "Lua command-line editing" 65 default BR2_PACKAGE_LUA_EDITING_NONE 66 67config BR2_PACKAGE_LUA_EDITING_NONE 68 bool "none" 69 help 70 None. 71 72config BR2_PACKAGE_LUA_READLINE 73 bool "readline support" 74 select BR2_PACKAGE_READLINE 75 select BR2_PACKAGE_NCURSES 76 help 77 Enables command-line editing in the Lua interpreter. 78 79config BR2_PACKAGE_LUA_LINENOISE 80 bool "linenoise support" 81 select BR2_PACKAGE_LINENOISE 82 help 83 Enables command-line editing in the Lua interpreter. 84 85endchoice 86 87endif 88