mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
47 lines
1.7 KiB
Makefile
47 lines
1.7 KiB
Makefile
################################################################################
|
|
# 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/"
|
|
# r5p1
|
|
PKG_VERSION="9b0fbbc"
|
|
PKG_URL="https://github.com/openwetek/gpu-aml/archive/$PKG_VERSION.tar.gz"
|
|
PKG_SOURCE_DIR="gpu-aml-$PKG_VERSION*"
|
|
PKG_DEPENDS_TARGET="toolchain linux"
|
|
PKG_NEED_UNPACK="$LINUX_DEPENDS"
|
|
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() {
|
|
LDFLAGS="" make -C $(kernel_path) M=$ROOT/$PKG_BUILD/mali \
|
|
CONFIG_MALI400=m CONFIG_MALI450=m
|
|
}
|
|
|
|
makeinstall_target() {
|
|
LDFLAGS="" make -C $(kernel_path) M=$ROOT/$PKG_BUILD/mali \
|
|
INSTALL_MOD_PATH=$INSTALL/usr INSTALL_MOD_STRIP=1 DEPMOD=: \
|
|
modules_install
|
|
}
|