ljsyscall: remove dependency on some architecture
ljsyscall is available for all arch supported by LuaJIT. refactor LJSYSCALL_ARCH : dispatch all arch. Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
cc6b36b6ba
commit
40bb89c027
@ -2,13 +2,11 @@ config BR2_PACKAGE_LJSYSCALL
|
|||||||
bool "ljsyscall"
|
bool "ljsyscall"
|
||||||
# ljsyscall is specifically for LuaJIT, not Lua.
|
# ljsyscall is specifically for LuaJIT, not Lua.
|
||||||
depends on BR2_PACKAGE_LUAJIT
|
depends on BR2_PACKAGE_LUAJIT
|
||||||
# ljsyscall is only available for some target architectures
|
|
||||||
depends on BR2_i386 || BR2_x86_64 || BR2_powerpc || BR2_arm || BR2_armeb
|
|
||||||
help
|
help
|
||||||
An FFI implementation of the Linux and NetBSD kernel ABIs for LuaJIT.
|
An FFI implementation of the Linux and NetBSD kernel ABIs for LuaJIT.
|
||||||
|
|
||||||
http://github.com/justincormack/ljsyscall
|
http://github.com/justincormack/ljsyscall
|
||||||
|
|
||||||
comment "ljsyscall needs LuaJIT"
|
comment "ljsyscall needs LuaJIT"
|
||||||
depends on !BR2_PACKAGE_LUAJIT && (BR2_i386 || BR2_x86_64 || BR2_powerpc || BR2_arm || BR2_armeb)
|
depends on !BR2_PACKAGE_LUAJIT
|
||||||
|
|
||||||
|
@ -9,13 +9,18 @@ LJSYSCALL_SITE = $(call github,justincormack,ljsyscall,$(LJSYSCALL_VERSION))
|
|||||||
LJSYSCALL_LICENSE = MIT
|
LJSYSCALL_LICENSE = MIT
|
||||||
LJSYSCALL_LICENSE_FILES = COPYRIGHT
|
LJSYSCALL_LICENSE_FILES = COPYRIGHT
|
||||||
|
|
||||||
|
# dispatch all architectures of LuaJIT
|
||||||
ifeq ($(BR2_i386),y)
|
ifeq ($(BR2_i386),y)
|
||||||
LJSYSCALL_ARCH = x86
|
LJSYSCALL_ARCH = x86
|
||||||
else ifeq ($(BR2_x86_64),y)
|
else ifeq ($(BR2_x86_64),y)
|
||||||
LJSYSCALL_ARCH = x64
|
LJSYSCALL_ARCH = x64
|
||||||
else ifeq ($(BR2_powerpc),y)
|
else ifeq ($(BR2_powerpc),y)
|
||||||
LJSYSCALL_ARCH = ppc
|
LJSYSCALL_ARCH = ppc
|
||||||
else ifeq ($(LJSYSCALL_ARCH),)
|
else ifeq ($(BR2_arm)$(BR2_armeb),y)
|
||||||
|
LJSYSCALL_ARCH = arm
|
||||||
|
else ifeq ($(BR2_mips)$(BR2_mipsel),y)
|
||||||
|
LJSYSCALL_ARCH = mips
|
||||||
|
else
|
||||||
LJSYSCALL_ARCH = $(BR2_ARCH)
|
LJSYSCALL_ARCH = $(BR2_ARCH)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user