80f332c9d2
Update to a new kernel based on v5.7-rc6, adding the following new features: * Remoteproc support and firmware loading * Panel drivers for OnePlus 6/T * Adreno 630 support * Anbox support The new firmware-oneplus-sdm845 is required for these features and devices will not have working display output without firmware [ci:skip-build] Already built on CI
57 lines
1.8 KiB
Text
57 lines
1.8 KiB
Text
# Maintainer: Caleb Connolly <caleb@connolly.tech>
|
|
# Kernel config based on: arch/arm64/configs/defconfig
|
|
|
|
_flavor="oneplus-sdm845"
|
|
pkgname=linux-$_flavor
|
|
pkgver=5.7_rc6
|
|
pkgrel=0
|
|
pkgdesc="Mainline kernel fork for OnePlus SDM845 devices"
|
|
arch="aarch64"
|
|
_carch="arm64"
|
|
url="https://gitlab.com/sdm845-mainline/sdm845-linux-next"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
|
makedepends="bison findutils flex installkernel openssl-dev perl"
|
|
|
|
_config="config-$_flavor.$arch"
|
|
_commit="d99aa17c6fd4528f0fc375b86d3390562046ba88"
|
|
|
|
# Source
|
|
source="
|
|
sdm845-linux-next-$_commit.tar.gz::https://gitlab.com/sdm845-mainline/sdm845-linux-next/-/archive/$_commit/sdm845-linux-next-$_commit-sdm845.tar.gz
|
|
$_config
|
|
"
|
|
builddir="$srcdir/sdm845-linux-next-$_commit"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
mkdir -p "$srcdir"/build
|
|
cp -v "$srcdir"/$_config "$srcdir"/build/.config
|
|
make -C "$builddir" O="$srcdir"/build ARCH="$_carch" \
|
|
olddefconfig
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir"/build
|
|
unset LDFLAGS
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor"
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/build/arch/$_carch/boot"
|
|
|
|
install -D "$srcdir/build/include/config/kernel.release" \
|
|
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
|
|
|
|
cd "$srcdir"/build
|
|
mkdir -p "$pkgdir"/boot
|
|
make zinstall modules_install dtbs_install \
|
|
ARCH="$_carch" \
|
|
INSTALL_PATH="$pkgdir"/boot/ \
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
INSTALL_DTBS_PATH="$pkgdir/usr/share/dtb"
|
|
}
|
|
|
|
sha512sums="1d83ab75660fa6fe5c3a2b5c78bdb8568f24656e4ddf93ebc9bc209a9adcd7d6bc47f14b7e2ab2cd664072020e2cf7de08260eb788ee219c69f9c80cfb2f6820 sdm845-linux-next-d99aa17c6fd4528f0fc375b86d3390562046ba88.tar.gz
|
|
af0d5d106a89e852e8bddec8a3b4320d054e3ea664d072a22631eb82149a85562e152a9e0d5c8900e46c1da90c2530509f5d047ca7e64b50ad17f0d42d3cdb7c config-oneplus-sdm845.aarch64"
|