diff options
author | Francois Perrad <fperrad@gmail.com> | 2015-03-21 13:01:37 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-03-23 19:14:39 +0100 |
commit | 40bb89c027e2975705250ab5ddf538634d9a881d (patch) | |
tree | d74962a9146f594de82e273902722e6fcaea4105 | |
parent | cc6b36b6bad9eb9c7590eb68f47d95c540af55fe (diff) | |
download | buildroot-40bb89c027e2975705250ab5ddf538634d9a881d.tar.gz buildroot-40bb89c027e2975705250ab5ddf538634d9a881d.zip |
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>
-rw-r--r-- | package/ljsyscall/Config.in | 4 | ||||
-rw-r--r-- | package/ljsyscall/ljsyscall.mk | 7 |
2 files changed, 7 insertions, 4 deletions
diff --git a/package/ljsyscall/Config.in b/package/ljsyscall/Config.in index dcbd52185e..149e71d3fd 100644 --- a/package/ljsyscall/Config.in +++ b/package/ljsyscall/Config.in @@ -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 diff --git a/package/ljsyscall/ljsyscall.mk b/package/ljsyscall/ljsyscall.mk index a17da3fc21..1c6c2c111f 100644 --- a/package/ljsyscall/ljsyscall.mk +++ b/package/ljsyscall/ljsyscall.mk @@ -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 |