6a7a652b14
This package provides Mali libraries for Sunxi Mali Utgard GPUs. The trailing -mainline is historical and was used at a time when there was two packages providing these libraries. The "non-upstream" package has been removed some time ago so before adding new packages bringing support for other ARM Mali GPU versions or implementations, rename sunxi-mali-mainline into sunxi-mali-utgard. Add a legacy entry. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com> [Giulio: rebase on master. Rename SUNXI_MALI_MAINLINE_REV to SUNXI_MALI_UTGARD_REV in sunxi-mali-mailine-driver.mk and BR2_PACKAGE_SUNXI_MALI_MAINLINE to BR2_PACKAGE_SUNXI_UTGARD in sunxi-mali-mainline-driver/Config.in to respect bisectability] Tested-by: Luca Ceresoli <luca@lucaceresoli.net> [Build tested only] Reviewed-by: Luca Ceresoli <luca@lucaceresoli.net> [Arnout: also update existing select in Config.in.legacy] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
50 lines
1.8 KiB
Makefile
50 lines
1.8 KiB
Makefile
################################################################################
|
|
#
|
|
# sunxi-mali-utgard
|
|
#
|
|
################################################################################
|
|
|
|
SUNXI_MALI_UTGARD_VERSION = 418f55585e76f375792dbebb3e97532f0c1c556d
|
|
SUNXI_MALI_UTGARD_SITE = $(call github,bootlin,mali-blobs,$(SUNXI_MALI_UTGARD_VERSION))
|
|
SUNXI_MALI_UTGARD_INSTALL_STAGING = YES
|
|
SUNXI_MALI_UTGARD_PROVIDES = libegl libgles
|
|
SUNXI_MALI_UTGARD_LICENSE = Allwinner End User Licence Agreement
|
|
SUNXI_MALI_UTGARD_EULA_ORIGINAL = EULA\ for\ Mali\ 400MP\ _AW.pdf
|
|
SUNXI_MALI_UTGARD_EULA_NO_SPACES = EULA_for_Mali_400MP_AW.pdf
|
|
SUNXI_MALI_UTGARD_LICENSE_FILES = $(SUNXI_MALI_UTGARD_EULA_NO_SPACES)
|
|
|
|
SUNXI_MALI_UTGARD_REV = $(call qstrip,$(BR2_PACKAGE_SUNXI_MALI_UTGARD_REVISION))
|
|
|
|
ifeq ($(BR2_arm),y)
|
|
SUNXI_MALI_UTGARD_ARCH=arm
|
|
else ifeq ($(BR2_aarch64),y)
|
|
SUNXI_MALI_UTGARD_ARCH=arm64
|
|
endif
|
|
|
|
define SUNXI_MALI_UTGARD_INSTALL_STAGING_CMDS
|
|
mkdir -p $(STAGING_DIR)/usr/lib $(STAGING_DIR)/usr/include
|
|
|
|
cp -rf $(@D)/$(SUNXI_MALI_UTGARD_REV)/$(SUNXI_MALI_UTGARD_ARCH)/fbdev/*.so* \
|
|
$(STAGING_DIR)/usr/lib/
|
|
cp -rf $(@D)/include/fbdev/* $(STAGING_DIR)/usr/include/
|
|
|
|
$(INSTALL) -D -m 0644 package/sunxi-mali-utgard/egl.pc \
|
|
$(STAGING_DIR)/usr/lib/pkgconfig/egl.pc
|
|
$(INSTALL) -D -m 0644 package/sunxi-mali-utgard/glesv2.pc \
|
|
$(STAGING_DIR)/usr/lib/pkgconfig/glesv2.pc
|
|
endef
|
|
|
|
define SUNXI_MALI_UTGARD_INSTALL_TARGET_CMDS
|
|
mkdir -p $(TARGET_DIR)/usr/lib
|
|
cp -rf $(@D)/$(SUNXI_MALI_UTGARD_REV)/$(SUNXI_MALI_UTGARD_ARCH)/fbdev/*.so* \
|
|
$(TARGET_DIR)/usr/lib/
|
|
endef
|
|
|
|
define SUNXI_MALI_UTGARD_FIXUP_LICENSE_FILE
|
|
mv $(@D)/$(SUNXI_MALI_UTGARD_EULA_ORIGINAL) $(@D)/$(SUNXI_MALI_UTGARD_EULA_NO_SPACES)
|
|
endef
|
|
|
|
SUNXI_MALI_UTGARD_POST_PATCH_HOOKS += SUNXI_MALI_UTGARD_FIXUP_LICENSE_FILE
|
|
|
|
$(eval $(generic-package))
|