package/luainterpreter: rename the _HAS and _PROVIDES variables
The basic rule for a package is to have its options named after the package name. There is no reason this should not also be the case for virtual packages. Besides, this will allow us to switch luainterpreter to use the soon-to-be-introduced virtual-package infrastructure. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Eric Le Bihan <eric.le.bihan.dev@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com> Cc: Mike Zick <minimod@morethan.org> Cc: Francois Perrad <fperrad@gmail.com> Reviewed-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
db4b9774b3
commit
50dfaef6ec
@ -371,7 +371,7 @@ source "package/jimtcl/Config.in"
|
||||
source "package/lua/Config.in"
|
||||
source "package/luainterpreter/Config.in"
|
||||
source "package/luajit/Config.in"
|
||||
if BR2_PACKAGE_HAS_LUA_INTERPRETER && !BR2_PREFER_STATIC_LIB
|
||||
if BR2_PACKAGE_HAS_LUAINTERPRETER && !BR2_PREFER_STATIC_LIB
|
||||
# lua modules are dynamically loaded, so not available on static builds
|
||||
menu "Lua libraries/modules"
|
||||
source "package/cgilua/Config.in"
|
||||
|
@ -1,6 +1,6 @@
|
||||
config BR2_PACKAGE_LBASE64
|
||||
bool "lbase64"
|
||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
||||
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||
depends on !BR2_PACKAGE_LUA_5_2
|
||||
help
|
||||
A base64 library for Lua
|
||||
|
@ -1,6 +1,6 @@
|
||||
config BR2_PACKAGE_LPEG
|
||||
bool "lpeg"
|
||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
||||
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||
help
|
||||
LPeg is a new pattern-matching library for Lua,
|
||||
based on Parsing Expression Grammars (PEGs).
|
||||
|
@ -1,6 +1,6 @@
|
||||
config BR2_PACKAGE_LPTY
|
||||
bool "lpty"
|
||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
||||
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||
help
|
||||
A simple facility for lua to control other programs via
|
||||
PTYs.
|
||||
|
@ -1,6 +1,6 @@
|
||||
config BR2_PACKAGE_LRANDOM
|
||||
bool "lrandom"
|
||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
||||
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||
help
|
||||
A library for generating random numbers
|
||||
based on the Mersenne Twister
|
||||
|
@ -1,7 +1,7 @@
|
||||
config BR2_PACKAGE_LSQLITE3
|
||||
bool "lsqlite3"
|
||||
select BR2_PACKAGE_SQLITE
|
||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
||||
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||
help
|
||||
a thin Lua wrapper for the SQLite3 library.
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
config BR2_PACKAGE_LUA_CJSON
|
||||
bool "lua-cjson"
|
||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
||||
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||
help
|
||||
The Lua CJSON module provides JSON support for Lua. It features:
|
||||
- Fast, standards compliant encoding/parsing routines
|
||||
|
@ -1,6 +1,6 @@
|
||||
config BR2_PACKAGE_LUA_EV
|
||||
bool "lua-ev"
|
||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
||||
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||
select BR2_PACKAGE_LIBEV
|
||||
depends on !(BR2_avr32 || BR2_bfin) # libev
|
||||
help
|
||||
|
@ -1,6 +1,6 @@
|
||||
config BR2_PACKAGE_LUA_MSGPACK_NATIVE
|
||||
bool "lua-msgpack-native"
|
||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
||||
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||
depends on !BR2_PACKAGE_LUA_5_2
|
||||
help
|
||||
This is a native, C language implementation of msgpack
|
||||
|
@ -1,6 +1,6 @@
|
||||
config BR2_PACKAGE_LUA
|
||||
bool "lua"
|
||||
select BR2_PACKAGE_HAS_LUA_INTERPRETER
|
||||
select BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||
help
|
||||
Lua is a powerful, fast, light-weight, embeddable scripting language.
|
||||
|
||||
@ -8,7 +8,7 @@ config BR2_PACKAGE_LUA
|
||||
|
||||
if BR2_PACKAGE_LUA
|
||||
|
||||
config BR2_PACKAGE_PROVIDES_LUA_INTERPRETER
|
||||
config BR2_PACKAGE_PROVIDES_LUAINTERPRETER
|
||||
default "lua"
|
||||
|
||||
choice
|
||||
|
@ -1,7 +1,7 @@
|
||||
config BR2_PACKAGE_LUAEXPAT
|
||||
bool "luaexpat"
|
||||
select BR2_PACKAGE_EXPAT
|
||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
||||
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||
help
|
||||
LuaExpat is a SAX XML parser based on the Expat library.
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
config BR2_PACKAGE_LUAFILESYSTEM
|
||||
bool "luafilesystem"
|
||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
||||
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||
help
|
||||
LuaFileSystem offers a portable way to access
|
||||
the underlying directory structure and file attributes.
|
||||
|
@ -1,9 +1,9 @@
|
||||
config BR2_PACKAGE_HAS_LUA_INTERPRETER
|
||||
config BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||
bool
|
||||
|
||||
config BR2_PACKAGE_PROVIDES_LUA_INTERPRETER
|
||||
config BR2_PACKAGE_PROVIDES_LUAINTERPRETER
|
||||
string
|
||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
||||
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||
|
||||
config BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION
|
||||
string
|
||||
|
@ -5,11 +5,11 @@
|
||||
################################################################################
|
||||
|
||||
LUAINTERPRETER_SOURCE =
|
||||
LUAINTERPRETER_DEPENDENCIES = $(call qstrip,$(BR2_PACKAGE_PROVIDES_LUA_INTERPRETER))
|
||||
LUAINTERPRETER_DEPENDENCIES = $(call qstrip,$(BR2_PACKAGE_PROVIDES_LUAINTERPRETER))
|
||||
|
||||
LUAINTERPRETER_ABIVER = $(call qstrip,$(BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION))
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HAS_LUA_INTERPRETER),y)
|
||||
ifeq ($(BR2_PACKAGE_HAS_LUAINTERPRETER),y)
|
||||
ifeq ($(LUAINTERPRETER_DEPENDENCIES),)
|
||||
$(error No lua interpreter implementation selected. Configuration error.)
|
||||
endif
|
||||
|
@ -1,6 +1,6 @@
|
||||
config BR2_PACKAGE_LUAJIT
|
||||
bool "luajit"
|
||||
select BR2_PACKAGE_HAS_LUA_INTERPRETER
|
||||
select BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||
# Luajit is only available for some target architectures, and
|
||||
# has some complexity wrt 32/64. See luajit.mk for details.
|
||||
depends on BR2_i386 || (BR2_x86_64 && BR2_HOSTARCH='x86_64') || BR2_powerpc || BR2_arm || BR2_armeb || BR2_mips || BR2_mipsel
|
||||
@ -14,7 +14,7 @@ config BR2_PACKAGE_LUAJIT
|
||||
|
||||
if BR2_PACKAGE_LUAJIT
|
||||
|
||||
config BR2_PACKAGE_PROVIDES_LUA_INTERPRETER
|
||||
config BR2_PACKAGE_PROVIDES_LUAINTERPRETER
|
||||
default "luajit"
|
||||
|
||||
config BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION
|
||||
|
@ -1,6 +1,6 @@
|
||||
config BR2_PACKAGE_LUAPOSIX
|
||||
bool "luaposix"
|
||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
||||
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||
select BR2_PACKAGE_LUABITOP if BR2_PACKAGE_LUA_5_1
|
||||
# LuaBitOp is already included in LuaJIT
|
||||
help
|
||||
|
@ -2,7 +2,7 @@ config BR2_PACKAGE_LUASEC
|
||||
bool "luasec"
|
||||
select BR2_PACKAGE_OPENSSL
|
||||
select BR2_PACKAGE_LUASOCKET
|
||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
||||
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||
help
|
||||
LuaSec is a binding for OpenSSL library to provide TLS/SSL
|
||||
communication.
|
||||
|
@ -1,6 +1,6 @@
|
||||
config BR2_PACKAGE_LUASOCKET
|
||||
bool "luasocket"
|
||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
||||
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||
help
|
||||
LuaSocket is the most comprehensive networking support library
|
||||
for the Lua language.
|
||||
|
@ -1,6 +1,6 @@
|
||||
config BR2_PACKAGE_LUASQL_SQLITE3
|
||||
bool "luasql-sqlite3"
|
||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
||||
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||
select BR2_PACKAGE_SQLITE
|
||||
help
|
||||
LuaSQL is a simple interface from Lua to a DBMS.
|
||||
|
@ -1,7 +1,7 @@
|
||||
config BR2_PACKAGE_LZLIB
|
||||
bool "lzlib"
|
||||
select BR2_PACKAGE_ZLIB
|
||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
||||
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||
help
|
||||
This package provides a library to access zlib library
|
||||
functions and also to read/write gzip files using an
|
||||
|
@ -1,6 +1,6 @@
|
||||
config BR2_PACKAGE_RINGS
|
||||
bool "rings"
|
||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
||||
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||
help
|
||||
Provides a way to create new Lua states from within Lua.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user