Blame view

buildroot/buildroot-2016.08.1/package/odroid-mali/odroid-mali.mk 1.05 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
  ################################################################################
  #
  # odroid-mali
  #
  ################################################################################
  
  ODROID_MALI_VERSION = 46fe49f37e3506c6205ad8c50980eca9bfff11e3
  ODROID_MALI_SITE = $(call github,mdrjr,c2_mali,$(ODROID_MALI_VERSION))
  ODROID_MALI_LICENSE = Hardkernel EULA
  ODROID_MALI_LICENSE_FILES = README.md
  
  ODROID_MALI_INSTALL_STAGING = YES
  ODROID_MALI_PROVIDES = libegl libgles
  
  ifeq ($(BR2_aarch64),y)
  ODROID_MALI_INSTALL_ARCH = mali_libs
  else
  ODROID_MALI_INSTALL_ARCH = 32bit_libs
  endif
  
  define ODROID_MALI_INSTALL_LIBS
  	cp -dpfr $(@D)/fbdev/$(ODROID_MALI_INSTALL_ARCH)/lib* $(1)/usr/lib/
  endef
  
  define ODROID_MALI_INSTALL_STAGING_CMDS
  	$(call ODROID_MALI_INSTALL_LIBS,$(STAGING_DIR))
  	mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig
  	cp -dpfr $(@D)/pkgconfig/*.pc $(STAGING_DIR)/usr/lib/pkgconfig/
  	cp -dpfr $(@D)/fbdev/mali_headers/* $(STAGING_DIR)/usr/include
  endef
  
  define ODROID_MALI_INSTALL_TARGET_CMDS
  	$(call ODROID_MALI_INSTALL_LIBS,$(TARGET_DIR))
  endef
  
  $(eval $(generic-package))