nuttx-apps/interpreters/lua/Kconfig
Matteo Golin 468ded86bb !interpreters/lua: Align naming of configuration options
Aligns `CONFIG_INTERPRETER_*` options to `CONFIG_INTERPRETERS_*` options
to be consistent with other interpreters.

BREAKING CHANGE: All configurations using `CONFIG_INTERPRETER_LUA_*`
options will no longer compile due to missing symbol errors. The fix is
very quick: any configurations using this options should add a trailing
S following INTERPRETER in the affected Kconfig variables. I believe
`./tools/refresh.sh` should also be capable of doing this automatically.

Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
2026-02-18 11:01:02 +01:00

67 lines
1.7 KiB
Text

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
menuconfig INTERPRETERS_LUA
bool "Lua interpreter support"
default n
select ARCH_SETJMP_H
select LIBC_LOCALE
---help---
Embed Lua language interpreter.
Select the Lua version with the INTERPRETERS_LUA_VERSION config.
A math library is required. Use the LIBM config or a toolchain library.
It's suggested to enable the SYSTEM_READLINE and LIBC_FLOATINGPOINT configs.
if INTERPRETERS_LUA
config INTERPRETERS_LUA_VERSION
string "Lua interpreter version"
default "5.4.0"
---help---
Lua release version to fetch and build.
Versions 5.2.0 and up are supported.
config INTERPRETERS_LUA_CORELIBS
bool "Load core Lua modules"
default y
select SYSTEM_SYSTEM
---help---
Load core Lua modules like "os", "string", and "table".
config INTERPRETERS_LUA_PATH
string "Lua modules search path"
---help---
Override default package.path search path for Lua modules.
config INTERPRETERS_LUA_CPATH
string "Lua C modules search path"
---help---
Override default package.cpath search path for C modules.
config INTERPRETERS_LUA_32BIT
bool "Use 32-bit integers and floats"
default y
---help---
"Use int and float instead of long and double for Lua numbers."
config INTERPRETERS_LUA_PRIORITY
int "Lua interpreter priority"
default 100
---help---
Task priority of the Lua interpreter main task.
config INTERPRETERS_LUA_STACKSIZE
int "Lua interpreter stack size"
default 32768
---help---
Size of the stack allocated for the Lua interpreter main task.
config INTERPRETERS_LUA_IOBUFSIZE
int "I/O buffer size"
default 1024
---help---
Size of the statically allocated I/O buffer.
endif # INTERPRETERS_LUA