6dcaa20ca4
Github repository mripard/sunxi-mali states to use Lima in place of sunxi-mali because it's deprecated, but this package is still useful in Buildroot so I want to move the SITE to my Github fork of the original repository that already contains a patch to fix a build failure showing up with Linux version >= 5.15. The upstream patch fixes missing DMA_BUF module inclusion that leads to build failure. The patch includes DMA_BUF by using: MODULE_IMPORT_NS(DMA_BUF); My idea is to continue to maintain this package in parallel to Lima since it seems to be still useful. Fixes: http://autobuild.buildroot.net/results/8f25c26de737c358b3b43a10737609465b4e1398/ Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
42 lines
1.5 KiB
Makefile
42 lines
1.5 KiB
Makefile
################################################################################
|
|
#
|
|
# sunxi-mali-utgard-driver
|
|
#
|
|
################################################################################
|
|
|
|
SUNXI_MALI_UTGARD_DRIVER_VERSION = c4cf7aabed25e0fd27159564caf588a37016870d
|
|
SUNXI_MALI_UTGARD_DRIVER_SITE = $(call github,giuliobenetti,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))
|