Commit 40bb89c0 authored by Francois Perrad's avatar Francois Perrad Committed by Thomas Petazzoni
Browse files

ljsyscall: remove dependency on some architecture



ljsyscall is available for all arch supported by LuaJIT.
refactor LJSYSCALL_ARCH : dispatch all arch.

Signed-off-by: default avatarFrancois Perrad <francois.perrad@gadz.org>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent cc6b36b6
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -2,13 +2,11 @@ config BR2_PACKAGE_LJSYSCALL
	bool "ljsyscall"
	# ljsyscall is specifically for LuaJIT, not Lua.
	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
	  An FFI implementation of the Linux and NetBSD kernel ABIs for LuaJIT.

	  http://github.com/justincormack/ljsyscall

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
+6 −1
Original line number Diff line number Diff line
@@ -9,13 +9,18 @@ LJSYSCALL_SITE = $(call github,justincormack,ljsyscall,$(LJSYSCALL_VERSION))
LJSYSCALL_LICENSE = MIT
LJSYSCALL_LICENSE_FILES = COPYRIGHT

# dispatch all architectures of LuaJIT
ifeq ($(BR2_i386),y)
LJSYSCALL_ARCH = x86
else ifeq ($(BR2_x86_64),y)
LJSYSCALL_ARCH = x64
else ifeq ($(BR2_powerpc),y)
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)
endif