sunxi-mali-utgard-driver.mk 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ################################################################################
  2. #
  3. # sunxi-mali-utgard-driver
  4. #
  5. ################################################################################
  6. SUNXI_MALI_UTGARD_DRIVER_VERSION = b47f74c92fbcbdf175a16052d1b0ce8345efc6b2
  7. SUNXI_MALI_UTGARD_DRIVER_SITE = $(call github,benetti-engineering,sunxi-mali,$(SUNXI_MALI_UTGARD_DRIVER_VERSION))
  8. SUNXI_MALI_UTGARD_DRIVER_DEPENDENCIES = linux
  9. SUNXI_MALI_UTGARD_DRIVER_LICENSE = GPL-2.0
  10. SUNXI_MALI_UTGARD_DRIVER_LICENSE_FILES = LICENSE
  11. SUNXI_MALI_UTGARD_DRIVER_MAKE_OPTS = \
  12. $(LINUX_MAKE_FLAGS) \
  13. KDIR=$(LINUX_DIR)
  14. define SUNXI_MALI_UTGARD_DRIVER_USE_APPLY_PATCHES
  15. ln -sf $(SUNXI_MALI_UTGARD_REV)/series $(@D)/patches
  16. $(APPLY_PATCHES) $(@D)/$(SUNXI_MALI_UTGARD_REV) $(@D)/patches
  17. endef
  18. SUNXI_MALI_UTGARD_DRIVER_POST_PATCH_HOOKS += SUNXI_MALI_UTGARD_DRIVER_USE_APPLY_PATCHES
  19. define SUNXI_MALI_UTGARD_DRIVER_BUILD_CMDS
  20. cd $(@D) && $(SUNXI_MALI_UTGARD_DRIVER_MAKE_OPTS) \
  21. $(SHELL) ./build.sh -r $(SUNXI_MALI_UTGARD_REV) -j $(PARALLEL_JOBS) -b
  22. endef
  23. define SUNXI_MALI_UTGARD_DRIVER_INSTALL_TARGET_CMDS
  24. cd $(@D) && $(SUNXI_MALI_UTGARD_DRIVER_MAKE_OPTS) \
  25. $(SHELL) ./build.sh -r $(SUNXI_MALI_UTGARD_REV) -j $(PARALLEL_JOBS) -i
  26. endef
  27. define SUNXI_MALI_UTGARD_DRIVER_LINUX_CONFIG_FIXUPS
  28. $(call KCONFIG_ENABLE_OPT,CONFIG_CMA)
  29. $(call KCONFIG_ENABLE_OPT,CONFIG_DMA_CMA)
  30. $(call KCONFIG_ENABLE_OPT,CONFIG_DRM_FBDEV_LEAK_PHYS_SMEM)
  31. endef
  32. $(eval $(generic-package))