04f7c38b2e
These configs were taken from https://wiki.pine64.org/wiki/Quartz64_Development#Linux_Kernel_Config_Options These configs are also needed for the GPU hardware acceleration. CONFIG_ARM_SCMI_PROTOCOL=m CONFIG_COMMON_CLK_SCMI=m
86 lines
2.1 KiB
Text
86 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=6.2
|
|
pkgrel=10
|
|
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-community
|
|
"
|
|
makedepends="
|
|
bash
|
|
bison
|
|
devicepkg-dev
|
|
findutils
|
|
flex
|
|
installkernel
|
|
openssl-dev
|
|
perl
|
|
rsync
|
|
gzip
|
|
xz
|
|
gmp-dev
|
|
mpc1-dev
|
|
mpfr-dev
|
|
"
|
|
|
|
# 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"
|
|
|
|
gzip -v "$pkgdir"/boot/vmlinuz
|
|
mv "$pkgdir"/boot/vmlinuz.gz "$pkgdir"/boot/vmlinuz
|
|
|
|
install -D "$builddir"/include/config/kernel.release \
|
|
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
|
|
}
|
|
|
|
sha512sums="
|
|
a01bee0b968b95183934fe3504516be7ef5811944a061f5aed05ecebaa27b5eb64e33232fd0a8dd622b3c8743bfe462ef7e464d381734d111a0ad6a6d9f66ddd linux-6.2.tar.xz
|
|
5d8791a867b6bbe5884e70e985e6550df163b013553f428b9808785603172e052c37f883265a839d569986d60df70f3117d6a156eb98042c06acdf5efa512534 config-postmarketos-rockchip.aarch64
|
|
"
|