N: Giulio Benetti <giulio.benetti@micronovasrl.com>
F: package/sunxi-mali-mainline/
+F: package/sunxi-mali-mainline-driver/
N: Gregory Dymarek <gregd72002@gmail.com>
F: package/ding-libs/
$(call KCONFIG_ENABLE_OPT,CONFIG_SECURITY,$(@D)/.config)
$(call KCONFIG_ENABLE_OPT,CONFIG_SECURITY_SMACK,$(@D)/.config)
$(call KCONFIG_ENABLE_OPT,CONFIG_SECURITY_NETWORK,$(@D)/.config))
+ $(if $(BR2_PACKAGE_SUNXI_MALI_MAINLINE_DRIVER),
+ $(call KCONFIG_ENABLE_OPT,CONFIG_CMA,$(@D)/.config)
+ $(call KCONFIG_ENABLE_OPT,CONFIG_DMA_CMA,$(@D)/.config))
$(if $(BR2_PACKAGE_IPTABLES),
$(call KCONFIG_ENABLE_OPT,CONFIG_IP_NF_IPTABLES,$(@D)/.config)
$(call KCONFIG_ENABLE_OPT,CONFIG_IP_NF_FILTER,$(@D)/.config)
source "package/sunxi-cedarx/Config.in"
source "package/sunxi-mali/Config.in"
source "package/sunxi-mali-mainline/Config.in"
+ source "package/sunxi-mali-mainline-driver/Config.in"
source "package/sysstat/Config.in"
source "package/targetcli-fb/Config.in"
source "package/ti-gfx/Config.in"
--- /dev/null
+comment "sunxi-mali-mainline-driver needs a Linux kernel to be built"
+ depends on BR2_PACKAGE_SUNXI_MALI_MAINLINE
+ depends on !BR2_LINUX_KERNEL
+
+config BR2_PACKAGE_SUNXI_MALI_MAINLINE_DRIVER
+ bool "sunxi-mali-mainline-driver"
+ default y
+ depends on BR2_PACKAGE_SUNXI_MALI_MAINLINE # runtime
+ depends on BR2_LINUX_KERNEL
+ select BR2_LINUX_NEEDS_MODULES # not using kernel-module infra
+ help
+ This package builds and installs the Linux kernel driver for
+ the Mali GPU on Allwinner platforms, compatible with recent
+ Linux kernels (>= 4.4). Note that it should be installed
+ together with the corresponding userspace OpenGL libraries,
+ which are provided as binaries only at:
+ https://github.com/free-electrons/mali-blobs
+
+ sunxi-mali-mainline-driver requires a Linux kernel >= 4.4
+ with the following options enabled:
+
+ - CONFIG_CMA
+ - CONFIG_DMA_CMA
+
+ https://github.com/mripard/sunxi-mali/blob/master/README.md
--- /dev/null
+################################################################################
+#
+# sunxi-mali-mainline-driver
+#
+################################################################################
+
+SUNXI_MALI_MAINLINE_DRIVER_VERSION = 42c7c139c14103a83bb2ad7e7a1f0ed491f96500
+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 = \
+ KDIR=$(LINUX_DIR) \
+ CROSS_COMPILE=$(TARGET_CROSS) \
+ INSTALL_MOD_PATH=$(TARGET_DIR)
+
+define SUNXI_MALI_MAINLINE_DRIVER_BUILD_CMDS
+ cd $(@D) && $(SUNXI_MALI_MAINLINE_DRIVER_MAKE_OPTS) \
+ $(SHELL) ./build.sh -r $(SUNXI_MALI_MAINLINE_REV) -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) -i
+endef
+
+$(eval $(generic-package))