mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-28 21:11:41 -09:00
luainterpreter: create virtual package
This patch introduces the luainterpreter virtual package, which is provided either by 'lua' or by 'lua-jit'. Packages that require a Lua interpreter can then depend on BR2_PACKAGE_LUAINTERPRETER (in their Config.in) and luainterpreter (in their .mk). Signed-off-by: Francois Perrad <francois.perrad@gadz.org> [yann.morin.1998@free.fr: switch to package-defined providers, apply Thomas' comments] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
9c47cd5b64
commit
4a09e9b54f
@@ -1,5 +1,6 @@
|
||||
config BR2_PACKAGE_LUAJIT
|
||||
bool "luajit"
|
||||
select BR2_PACKAGE_HAS_LUA_INTERPRETER
|
||||
# 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
|
||||
@@ -10,3 +11,10 @@ config BR2_PACKAGE_LUAJIT
|
||||
deployed as a drop-in replacement.
|
||||
|
||||
http://luajit.org/
|
||||
|
||||
if BR2_PACKAGE_LUAJIT
|
||||
|
||||
config BR2_PACKAGE_PROVIDES_LUA_INTERPRETER
|
||||
default "luajit"
|
||||
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user