1 ################################################################################
5 ################################################################################
7 LJSYSCALL_VERSION
= v0.10
8 LJSYSCALL_SITE
= $(call github
,justincormack
,ljsyscall
,$(LJSYSCALL_VERSION
))
9 LJSYSCALL_LICENSE
= MIT
10 LJSYSCALL_LICENSE_FILES
= COPYRIGHT
12 # dispatch all architectures of LuaJIT
15 else ifeq ($(BR2_x86_64
),y
)
17 else ifeq ($(BR2_powerpc
),y
)
19 else ifeq ($(BR2_arm
)$(BR2_armeb
),y
)
21 else ifeq ($(BR2_mips
)$(BR2_mipsel
),y
)
24 LJSYSCALL_ARCH
= $(BR2_ARCH
)
27 LJSYSCALL_TARGET_DIR
= $(TARGET_DIR
)/usr
/share
/lua
/$(LUAINTERPRETER_ABIVER
)
29 define LJSYSCALL_INSTALL_TARGET_CMDS
30 $(INSTALL
) -d
$(LJSYSCALL_TARGET_DIR
)/syscall
31 $(INSTALL
) -m
0644 -t
$(LJSYSCALL_TARGET_DIR
)/ $(@D
)/syscall.lua
32 $(INSTALL
) -m
0644 -t
$(LJSYSCALL_TARGET_DIR
)/syscall
$(@D
)/syscall
/*.lua
34 $(INSTALL
) -d
$(LJSYSCALL_TARGET_DIR
)/syscall
/linux
/$(LJSYSCALL_ARCH
)
35 $(INSTALL
) -m
0644 -t
$(LJSYSCALL_TARGET_DIR
)/syscall
/linux
/ $(@D
)/syscall
/linux
/*.lua
36 $(INSTALL
) -m
0644 -t
$(LJSYSCALL_TARGET_DIR
)/syscall
/linux
/$(LJSYSCALL_ARCH
) $(@D
)/syscall
/linux
/$(LJSYSCALL_ARCH
)/*.lua
38 $(INSTALL
) -d
$(LJSYSCALL_TARGET_DIR
)/syscall
/shared
39 $(INSTALL
) -m
0644 -t
$(LJSYSCALL_TARGET_DIR
)/syscall
/shared
/ $(@D
)/syscall
/shared
/*.lua
42 $(eval
$(generic-package
))