Blame view

buildroot/buildroot-2016.08.1/package/ljsyscall/ljsyscall.mk 1.41 KB
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
  ################################################################################
  #
  # ljsyscall
  #
  ################################################################################
  
  LJSYSCALL_VERSION = v0.10
  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 ($(BR2_arm)$(BR2_armeb),y)
  LJSYSCALL_ARCH = arm
  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))