79134095a2
llvm was left over from Martijn's efforts to reduce the kernel size The drivers for external DP are enabled here, but all patches from manjaro that deal with DP/typec alt mode, etc are dropped since they do not solve anything on their own and may cause display instability issues... [ci:skip-build]: already built successfully in CI
83 lines
2.1 KiB
Text
83 lines
2.1 KiB
Text
# Maintainer: Martijn Braam <martijn@brixit.nl>
|
|
|
|
# This is seperate from linux-edge so we can control the release cycle better.
|
|
# If this kernel is updated and fails to boot it's quite hard to recover the
|
|
# rk3399 devices due to the boot order. This kernel also has a kconfig that has
|
|
# more modules built-in that are required for successfully booting on these
|
|
# devices.
|
|
|
|
# It's important that CONFIG_ROCKCHIP_CDN_DP is _disabled_ because it causes
|
|
# boot failure
|
|
|
|
pkgname=linux-postmarketos-rockchip
|
|
pkgver=5.13.4
|
|
pkgrel=0
|
|
pkgdesc="Mainline kernel for rockchip devices"
|
|
arch="aarch64"
|
|
_carch="arm64"
|
|
_flavor="${pkgname#linux-}"
|
|
url="https://kernel.org"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps
|
|
pmb:cross-native
|
|
pmb:kconfigcheck-anbox
|
|
pmb:kconfigcheck-nftables
|
|
pmb:kconfigcheck-containers
|
|
pmb:kconfigcheck-zram
|
|
"
|
|
makedepends="
|
|
bison
|
|
devicepkg-dev
|
|
findutils
|
|
flex
|
|
installkernel
|
|
openssl-dev
|
|
perl
|
|
rsync
|
|
gzip
|
|
xz
|
|
"
|
|
|
|
# Source
|
|
_config="config-$_flavor.$arch"
|
|
case $pkgver in
|
|
*.*.*) _kernver=${pkgver%.0};;
|
|
*.*) _kernver=$pkgver;;
|
|
esac
|
|
|
|
source="
|
|
https://cdn.kernel.org/pub/linux/kernel/v${_kernver%%.*}.x/linux-$_kernver.tar.xz
|
|
$_config
|
|
"
|
|
builddir="$srcdir/linux-$_kernver"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
REPLACE_GCCH=0 \
|
|
. downstreamkernel_prepare
|
|
}
|
|
|
|
build() {
|
|
unset LDFLAGS
|
|
make ARCH="$_carch" \
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor"
|
|
|
|
}
|
|
|
|
package() {
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
|
|
|
|
make -j1 modules_install dtbs_install \
|
|
ARCH="$_carch" \
|
|
INSTALL_MOD_STRIP=1 \
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
INSTALL_DTBS_PATH="$pkgdir/boot/dtbs-$_flavor"
|
|
gzip -v "$pkgdir"/boot/vmlinuz-postmarketos-rockchip
|
|
mv "$pkgdir"/boot/vmlinuz-postmarketos-rockchip.gz "$pkgdir"/boot/vmlinuz-postmarketos-rockchip
|
|
}
|
|
|
|
|
|
sha512sums="
|
|
dcd44f0da2420093f6ed8e44df4ed81fb8123fbc25d2dcdddd633feb3fc455ec74ef7a683a9c249e7089981393fcbed10c41aad10d4b0108c964cbd485e359e5 linux-5.13.4.tar.xz
|
|
c13d39dba1e0be41116c1f712aac1ca00fc68616a01afd103428fa2b01c44ad6190abf7f9d3f7fd0ff280e6ac953f2817eaf0c5659c5611f51cb3994df3ffa9b config-postmarketos-rockchip.aarch64
|
|
"
|