2018-02-15 14:57:17 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# sunxi-mali-mainline
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2018-08-22 02:06:47 +02:00
|
|
|
SUNXI_MALI_MAINLINE_VERSION = d691cb93884ca8ac67860502117bbec283dc19aa
|
2018-08-22 13:31:45 +02:00
|
|
|
SUNXI_MALI_MAINLINE_SITE = $(call github,bootlin,mali-blobs,$(SUNXI_MALI_MAINLINE_VERSION))
|
2018-02-15 14:57:17 +01:00
|
|
|
SUNXI_MALI_MAINLINE_INSTALL_STAGING = YES
|
|
|
|
SUNXI_MALI_MAINLINE_PROVIDES = libegl libgles
|
2018-08-25 15:52:11 +02:00
|
|
|
SUNXI_MALI_MAINLINE_LICENSE = Allwinner End User Licence Agreement
|
|
|
|
SUNXI_MALI_MAINLINE_EULA_ORIGINAL = EULA\ for\ Mali\ 400MP\ _AW.pdf
|
|
|
|
SUNXI_MALI_MAINLINE_EULA_NO_SPACES = EULA_for_Mali_400MP_AW.pdf
|
|
|
|
SUNXI_MALI_MAINLINE_LICENSE_FILES = $(SUNXI_MALI_MAINLINE_EULA_NO_SPACES)
|
2018-02-15 14:57:17 +01:00
|
|
|
|
|
|
|
SUNXI_MALI_MAINLINE_REV = $(call qstrip,$(BR2_PACKAGE_SUNXI_MALI_MAINLINE_REVISION))
|
|
|
|
|
2018-08-22 02:06:47 +02:00
|
|
|
ifeq ($(BR2_arm),y)
|
|
|
|
SUNXI_MALI_MAINLINE_ARCH=arm
|
|
|
|
else ifeq ($(BR2_aarch64),y)
|
|
|
|
SUNXI_MALI_MAINLINE_ARCH=arm64
|
|
|
|
endif
|
|
|
|
|
2018-02-15 14:57:17 +01:00
|
|
|
define SUNXI_MALI_MAINLINE_INSTALL_STAGING_CMDS
|
|
|
|
mkdir -p $(STAGING_DIR)/usr/lib $(STAGING_DIR)/usr/include
|
|
|
|
|
2018-08-22 02:06:47 +02:00
|
|
|
cp -rf $(@D)/$(SUNXI_MALI_MAINLINE_REV)/$(SUNXI_MALI_MAINLINE_ARCH)/fbdev/*.so* \
|
2018-02-15 14:57:17 +01:00
|
|
|
$(STAGING_DIR)/usr/lib/
|
2018-08-22 02:06:47 +02:00
|
|
|
cp -rf $(@D)/include/fbdev/* $(STAGING_DIR)/usr/include/
|
2018-02-15 14:57:17 +01:00
|
|
|
|
|
|
|
$(INSTALL) -D -m 0644 package/sunxi-mali-mainline/egl.pc \
|
|
|
|
$(STAGING_DIR)/usr/lib/pkgconfig/egl.pc
|
|
|
|
$(INSTALL) -D -m 0644 package/sunxi-mali-mainline/glesv2.pc \
|
|
|
|
$(STAGING_DIR)/usr/lib/pkgconfig/glesv2.pc
|
|
|
|
endef
|
|
|
|
|
|
|
|
define SUNXI_MALI_MAINLINE_INSTALL_TARGET_CMDS
|
|
|
|
mkdir -p $(TARGET_DIR)/usr/lib
|
2018-08-22 02:06:47 +02:00
|
|
|
cp -rf $(@D)/$(SUNXI_MALI_MAINLINE_REV)/$(SUNXI_MALI_MAINLINE_ARCH)/fbdev/*.so* \
|
2018-02-15 14:57:17 +01:00
|
|
|
$(TARGET_DIR)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2018-08-25 15:52:11 +02:00
|
|
|
define SUNXI_MALI_MAINLINE_FIXUP_LICENSE_FILE
|
|
|
|
mv $(@D)/$(SUNXI_MALI_MAINLINE_EULA_ORIGINAL) $(@D)/$(SUNXI_MALI_MAINLINE_EULA_NO_SPACES)
|
|
|
|
endef
|
|
|
|
|
|
|
|
SUNXI_MALI_MAINLINE_POST_PATCH_HOOKS += SUNXI_MALI_MAINLINE_FIXUP_LICENSE_FILE
|
|
|
|
|
2018-02-15 14:57:17 +01:00
|
|
|
$(eval $(generic-package))
|