2016-07-24 18:35:06 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
2016-10-25 19:54:17 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_ODROID_MALI_X11),y)
|
|
|
|
ODROID_MALI_HEADERS_SUBDIR = x11/mali_headers/
|
|
|
|
ODROID_MALI_LIBS_SUBDIR = x11/mali_libs/
|
|
|
|
# The X11 blobs are linked against those libraries, and the headers
|
|
|
|
# include headers from those libraries
|
|
|
|
ODROID_MALI_DEPENDENCIES += \
|
|
|
|
libdrm xlib_libX11 xlib_libXdamage \
|
|
|
|
xlib_libXext xlib_libXfixes
|
|
|
|
else
|
|
|
|
ODROID_MALI_HEADERS_SUBDIR = fbdev/mali_headers/
|
2016-07-24 18:35:06 +02:00
|
|
|
ifeq ($(BR2_aarch64),y)
|
2016-10-25 19:54:17 +02:00
|
|
|
ODROID_MALI_LIBS_SUBDIR = fbdev/mali_libs/
|
2016-07-24 18:35:06 +02:00
|
|
|
else
|
2016-10-25 19:54:17 +02:00
|
|
|
ODROID_MALI_LIBS_SUBDIR = fbdev/32bit_libs/
|
|
|
|
endif
|
2016-07-24 18:35:06 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
define ODROID_MALI_INSTALL_LIBS
|
2016-10-25 19:54:17 +02:00
|
|
|
cp -dpfr $(@D)/$(ODROID_MALI_LIBS_SUBDIR)/lib* $(1)/usr/lib/
|
2016-07-24 18:35:06 +02:00
|
|
|
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/
|
2016-10-25 19:54:17 +02:00
|
|
|
cp -dpfr $(@D)/$(ODROID_MALI_HEADERS_SUBDIR)/* $(STAGING_DIR)/usr/include
|
2016-07-24 18:35:06 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define ODROID_MALI_INSTALL_TARGET_CMDS
|
|
|
|
$(call ODROID_MALI_INSTALL_LIBS,$(TARGET_DIR))
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|