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>
        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
 
 
 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