9181bd3ce1
luajit supports aarch64_be since commit
28e5c2f2bd
However this raise a build failure with ljsyscall because aarch64_be
directory does not exist so use arm64 instead
/usr/bin/install: cannot stat '/home/buildroot/autobuild/instance-1/output-1/build/ljsyscall-0.12/syscall/linux/aarch64_be/*.lua': No such file or directory
Fixes:
- http://autobuild.buildroot.org/results/78397c83e84dbfc09990f92be93e0b8a10d014c5
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
45 lines
1.5 KiB
Makefile
45 lines
1.5 KiB
Makefile
################################################################################
|
|
#
|
|
# ljsyscall
|
|
#
|
|
################################################################################
|
|
|
|
LJSYSCALL_VERSION = 0.12
|
|
LJSYSCALL_SITE = $(call github,justincormack,ljsyscall,v$(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 ($(BR2_arm)$(BR2_armeb),y)
|
|
LJSYSCALL_ARCH = arm
|
|
else ifeq ($(BR2_aarch64)$(BR2_aarch64_be),y)
|
|
LJSYSCALL_ARCH = arm64
|
|
else ifeq ($(BR2_mips)$(BR2_mipsel),y)
|
|
LJSYSCALL_ARCH = mips
|
|
else
|
|
LJSYSCALL_ARCH = $(BR2_ARCH)
|
|
endif
|
|
|
|
LJSYSCALL_TARGET_DIR = $(TARGET_DIR)/usr/share/lua/$(LUAINTERPRETER_ABIVER)
|
|
|
|
define LJSYSCALL_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -d $(LJSYSCALL_TARGET_DIR)/syscall
|
|
$(INSTALL) -m 0644 -t $(LJSYSCALL_TARGET_DIR)/ $(@D)/syscall.lua
|
|
$(INSTALL) -m 0644 -t $(LJSYSCALL_TARGET_DIR)/syscall $(@D)/syscall/*.lua
|
|
|
|
$(INSTALL) -d $(LJSYSCALL_TARGET_DIR)/syscall/linux/$(LJSYSCALL_ARCH)
|
|
$(INSTALL) -m 0644 -t $(LJSYSCALL_TARGET_DIR)/syscall/linux/ $(@D)/syscall/linux/*.lua
|
|
$(INSTALL) -m 0644 -t $(LJSYSCALL_TARGET_DIR)/syscall/linux/$(LJSYSCALL_ARCH) $(@D)/syscall/linux/$(LJSYSCALL_ARCH)/*.lua
|
|
|
|
$(INSTALL) -d $(LJSYSCALL_TARGET_DIR)/syscall/shared
|
|
$(INSTALL) -m 0644 -t $(LJSYSCALL_TARGET_DIR)/syscall/shared/ $(@D)/syscall/shared/*.lua
|
|
endef
|
|
|
|
$(eval $(generic-package))
|