kumquat-buildroot/package/sunxi-mali-utgard-driver/sunxi-mali-utgard-driver.mk
Miquel Raynal c8324bf87c package/sunxi-mali-utgard-driver: rename from sunxi-mali-mainline-driver
This package provides a Mali kernel driver for Sunxi Mali Utgard GPUs. The
trailing -mainline is historical and was used at a time when there was
two packages providing this driver. 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-driver into sunxi-mali-utgard-driver.

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. Add legacy entry instead of substituting the
blob's one]
Reviewed-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2022-01-06 19:02:09 +01:00

42 lines
1.4 KiB
Makefile

################################################################################
#
# sunxi-mali-utgard-driver
#
################################################################################
SUNXI_MALI_UTGARD_DRIVER_VERSION = e4a91c95096bb31450b556fcb13f3c4ba79f60b4
SUNXI_MALI_UTGARD_DRIVER_SITE = $(call github,mripard,sunxi-mali,$(SUNXI_MALI_UTGARD_DRIVER_VERSION))
SUNXI_MALI_UTGARD_DRIVER_DEPENDENCIES = linux
SUNXI_MALI_UTGARD_DRIVER_LICENSE = GPL-2.0
SUNXI_MALI_UTGARD_DRIVER_LICENSE_FILES = LICENSE
SUNXI_MALI_UTGARD_DRIVER_MAKE_OPTS = \
$(LINUX_MAKE_FLAGS) \
KDIR=$(LINUX_DIR)
define SUNXI_MALI_UTGARD_DRIVER_USE_APPLY_PATCHES
ln -sf $(SUNXI_MALI_UTGARD_REV)/series $(@D)/patches
$(SED) 's|quilt push -a|$(TOPDIR)/support/scripts/apply-patches.sh . ../patches|' \
$(@D)/build.sh
endef
SUNXI_MALI_UTGARD_DRIVER_POST_PATCH_HOOKS += SUNXI_MALI_UTGARD_DRIVER_USE_APPLY_PATCHES
define SUNXI_MALI_UTGARD_DRIVER_BUILD_CMDS
cd $(@D) && $(SUNXI_MALI_UTGARD_DRIVER_MAKE_OPTS) \
$(SHELL) ./build.sh -r $(SUNXI_MALI_UTGARD_REV) -j $(PARALLEL_JOBS) -b
endef
define SUNXI_MALI_UTGARD_DRIVER_INSTALL_TARGET_CMDS
cd $(@D) && $(SUNXI_MALI_UTGARD_DRIVER_MAKE_OPTS) \
$(SHELL) ./build.sh -r $(SUNXI_MALI_UTGARD_REV) -j $(PARALLEL_JOBS) -i
endef
define SUNXI_MALI_UTGARD_DRIVER_LINUX_CONFIG_FIXUPS
$(call KCONFIG_ENABLE_OPT,CONFIG_CMA)
$(call KCONFIG_ENABLE_OPT,CONFIG_DMA_CMA)
$(call KCONFIG_ENABLE_OPT,CONFIG_DRM_FBDEV_LEAK_PHYS_SMEM)
endef
$(eval $(generic-package))