2014-01-17 04:10:25 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# ljsyscall
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2014-04-29 18:55:14 +02:00
|
|
|
LJSYSCALL_VERSION = v0.10
|
2014-01-17 04:10:25 +01:00
|
|
|
LJSYSCALL_SITE = $(call github,justincormack,ljsyscall,$(LJSYSCALL_VERSION))
|
|
|
|
LJSYSCALL_LICENSE = MIT
|
|
|
|
LJSYSCALL_LICENSE_FILES = COPYRIGHT
|
|
|
|
|
2015-03-21 13:01:37 +01:00
|
|
|
# dispatch all architectures of LuaJIT
|
2014-01-17 04:10:25 +01:00
|
|
|
ifeq ($(BR2_i386),y)
|
|
|
|
LJSYSCALL_ARCH = x86
|
|
|
|
else ifeq ($(BR2_x86_64),y)
|
|
|
|
LJSYSCALL_ARCH = x64
|
|
|
|
else ifeq ($(BR2_powerpc),y)
|
|
|
|
LJSYSCALL_ARCH = ppc
|
2015-03-21 13:01:37 +01:00
|
|
|
else ifeq ($(BR2_arm)$(BR2_armeb),y)
|
|
|
|
LJSYSCALL_ARCH = arm
|
|
|
|
else ifeq ($(BR2_mips)$(BR2_mipsel),y)
|
|
|
|
LJSYSCALL_ARCH = mips
|
|
|
|
else
|
2014-01-17 04:10:25 +01:00
|
|
|
LJSYSCALL_ARCH = $(BR2_ARCH)
|
|
|
|
endif
|
|
|
|
|
2014-01-31 03:29:51 +01:00
|
|
|
LJSYSCALL_TARGET_DIR = $(TARGET_DIR)/usr/share/lua/$(LUAINTERPRETER_ABIVER)
|
2014-01-17 04:10:25 +01:00
|
|
|
|
|
|
|
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))
|