2018-02-15 14:57:52 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# sunxi-mali-mainline-driver
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-07-23 10:11:41 +02:00
|
|
|
SUNXI_MALI_MAINLINE_DRIVER_VERSION = edd3cf4ae7ea5ec573a0eccfbbeb985244499a00
|
2018-02-15 14:57:52 +01:00
|
|
|
SUNXI_MALI_MAINLINE_DRIVER_SITE = $(call github,mripard,sunxi-mali,$(SUNXI_MALI_MAINLINE_DRIVER_VERSION))
|
|
|
|
SUNXI_MALI_MAINLINE_DRIVER_DEPENDENCIES = linux
|
2018-10-05 16:58:56 +02:00
|
|
|
SUNXI_MALI_MAINLINE_DRIVER_LICENSE = GPL-2.0
|
|
|
|
SUNXI_MALI_MAINLINE_DRIVER_LICENSE_FILES = LICENSE
|
2018-02-15 14:57:52 +01:00
|
|
|
|
|
|
|
SUNXI_MALI_MAINLINE_DRIVER_MAKE_OPTS = \
|
2018-08-27 10:49:02 +02:00
|
|
|
$(LINUX_MAKE_FLAGS) \
|
|
|
|
KDIR=$(LINUX_DIR)
|
2018-02-15 14:57:52 +01:00
|
|
|
|
2018-02-15 17:33:48 +01:00
|
|
|
define SUNXI_MALI_MAINLINE_DRIVER_USE_APPLY_PATCHES
|
|
|
|
ln -sf $(SUNXI_MALI_MAINLINE_REV)/series $(@D)/patches
|
|
|
|
$(SED) 's|quilt push -a|$(TOPDIR)/support/scripts/apply-patches.sh . ../patches|' \
|
|
|
|
$(@D)/build.sh
|
|
|
|
endef
|
|
|
|
|
|
|
|
SUNXI_MALI_MAINLINE_DRIVER_POST_PATCH_HOOKS += SUNXI_MALI_MAINLINE_DRIVER_USE_APPLY_PATCHES
|
|
|
|
|
2018-02-15 14:57:52 +01:00
|
|
|
define SUNXI_MALI_MAINLINE_DRIVER_BUILD_CMDS
|
|
|
|
cd $(@D) && $(SUNXI_MALI_MAINLINE_DRIVER_MAKE_OPTS) \
|
2018-02-20 13:22:08 +01:00
|
|
|
$(SHELL) ./build.sh -r $(SUNXI_MALI_MAINLINE_REV) -j $(PARALLEL_JOBS) -b
|
2018-02-15 14:57:52 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define SUNXI_MALI_MAINLINE_DRIVER_INSTALL_TARGET_CMDS
|
|
|
|
cd $(@D) && $(SUNXI_MALI_MAINLINE_DRIVER_MAKE_OPTS) \
|
2018-02-20 13:22:08 +01:00
|
|
|
$(SHELL) ./build.sh -r $(SUNXI_MALI_MAINLINE_REV) -j $(PARALLEL_JOBS) -i
|
2018-02-15 14:57:52 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|