mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
packages/linux-drivers/gpu-aml: Add a package that provides Linux drivers for Mali GPUs found in Amlogic SOCs
This commit is contained in:
parent
5542ed1e0f
commit
7e1d63f645
1
packages/linux-drivers/gpu-aml/modules-load.d/mali.conf
Normal file
1
packages/linux-drivers/gpu-aml/modules-load.d/mali.conf
Normal file
@ -0,0 +1 @@
|
||||
mali
|
48
packages/linux-drivers/gpu-aml/package.mk
Normal file
48
packages/linux-drivers/gpu-aml/package.mk
Normal file
@ -0,0 +1,48 @@
|
||||
################################################################################
|
||||
# This file is part of LibreELEC - https://LibreELEC.tv
|
||||
# Copyright (C) 2016 Team LibreELEC
|
||||
#
|
||||
# LibreELEC is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# LibreELEC is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="gpu-aml"
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="arm aarch64"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://openlinux.amlogic.com:8000/download/ARM/gpu/"
|
||||
PKG_VERSION="r6p1-01rel0-2364187"
|
||||
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
|
||||
PKG_DEPENDS_TARGET="toolchain linux"
|
||||
PKG_NEED_UNPACK="$LINUX_DEPENDS"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="driver"
|
||||
PKG_SHORTDESC="gpu-aml: Linux drivers for Mali GPUs found in Amlogic Meson SoCs"
|
||||
PKG_LONGDESC="gpu-aml: Linux drivers for Mali GPUs found in Amlogic Meson SoCs"
|
||||
|
||||
PKG_IS_ADDON="no"
|
||||
PKG_AUTORECONF="no"
|
||||
|
||||
make_target() {
|
||||
cd mali
|
||||
LDFLAGS="" make V=1 \
|
||||
-C $(kernel_path) M=$ROOT/$PKG_BUILD/mali \
|
||||
ARCH=$TARGET_KERNEL_ARCH \
|
||||
CROSS_COMPILE=$TARGET_PREFIX \
|
||||
CONFIG_MALI400=m CONFIG_MALI450=m
|
||||
}
|
||||
|
||||
makeinstall_target() {
|
||||
mkdir -p $INSTALL/lib/modules/$(get_module_dir)/mali
|
||||
cp *.ko $INSTALL/lib/modules/$(get_module_dir)/mali
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user