From f07546f021e78bb992b0892b7325288c52cf1134 Mon Sep 17 00:00:00 2001 From: Zoltan HERPAI Date: Mon, 26 Aug 2019 10:24:32 +0200 Subject: [PATCH] modules: add Allwinner Mali support Signed-off-by: Zoltan HERPAI --- package/kernel/mali/Makefile | 42 ++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 package/kernel/mali/Makefile diff --git a/package/kernel/mali/Makefile b/package/kernel/mali/Makefile new file mode 100644 index 0000000000..2c7043ce6d --- /dev/null +++ b/package/kernel/mali/Makefile @@ -0,0 +1,42 @@ +# +# Copyright (C) 2014-2018 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=mali +PKG_RELEASE=1 + +PKG_LICENSE:=GPL-2.0 + +PKG_SOURCE_URL:=https://github.com/mripard/sunxi-mali +PKG_SOURCE_PROTO:=git +PKG_SOURCE_DATE:=2019-02-16 +PKG_SOURCE_VERSION:=51fd0969b595d6d9e5b2af8d87f115dc11bbf8c3 +PKG_MIRROR_HASH:=43009fcd031589833183f2915dfb0c85347de6eb6f510ce4de18e6969769dd0d + +PKG_MAINTAINER:=Zoltan HERPAI +PKG_BUILD_PARALLEL:=1 + +include $(INCLUDE_DIR)/kernel.mk +include $(INCLUDE_DIR)/package.mk + +define KernelPackage/mali + SUBMENU:=Video Support + TITLE:=Mali support for sunXi platform for mainline Linux + DEPENDS:=@TARGET_sunxi + FILES:=$(PKG_BUILD_DIR)/mali.ko + AUTOLOAD:=$(call AutoLoad,50,mali) +endef + +define Build/Compile + (cd $(PKG_BUILD_DIR); \ + $(KERNEL_MAKE_FLAGS) \ + KDIR=$(LINUX_DIR) \ + ./build.sh -r r6p2 -b ) +endef + +$(eval $(call KernelPackage,mali)) -- 2.30.2