![Giulio Benetti](/assets/img/avatar_default.png)
Blobs for ARM64 are now available at Bootlin Github and sunxi-mali-mainline package has been updated to support them. This commit updates the <pkg>_MAKE_OPTS variable by substituting CROSS_COMPILE and INSTALL_MOD_PATH with LINUX_MAKE_FLAGS. LINUX_MAKE_FLAGS already includes CROSS_COMPILE and INSTALL_MOD_PAT, but also includes the ARCH variable, which is needed to select the appropriate architecture when building the Mali driver. Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
34 lines
1.2 KiB
Makefile
34 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# sunxi-mali-mainline-driver
|
|
#
|
|
################################################################################
|
|
|
|
SUNXI_MALI_MAINLINE_DRIVER_VERSION = 8e6b7d25b13089d53dbfc1ebd9e8737b0dc809cb
|
|
SUNXI_MALI_MAINLINE_DRIVER_SITE = $(call github,mripard,sunxi-mali,$(SUNXI_MALI_MAINLINE_DRIVER_VERSION))
|
|
SUNXI_MALI_MAINLINE_DRIVER_DEPENDENCIES = linux
|
|
|
|
SUNXI_MALI_MAINLINE_DRIVER_MAKE_OPTS = \
|
|
$(LINUX_MAKE_FLAGS) \
|
|
KDIR=$(LINUX_DIR)
|
|
|
|
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
|
|
|
|
define SUNXI_MALI_MAINLINE_DRIVER_BUILD_CMDS
|
|
cd $(@D) && $(SUNXI_MALI_MAINLINE_DRIVER_MAKE_OPTS) \
|
|
$(SHELL) ./build.sh -r $(SUNXI_MALI_MAINLINE_REV) -j $(PARALLEL_JOBS) -b
|
|
endef
|
|
|
|
define SUNXI_MALI_MAINLINE_DRIVER_INSTALL_TARGET_CMDS
|
|
cd $(@D) && $(SUNXI_MALI_MAINLINE_DRIVER_MAKE_OPTS) \
|
|
$(SHELL) ./build.sh -r $(SUNXI_MALI_MAINLINE_REV) -j $(PARALLEL_JOBS) -i
|
|
endef
|
|
|
|
$(eval $(generic-package))
|