2020-04-07 17:56:30 +00:00
|
|
|
# Maintainer: Martijn Braam <martijn@brixit.nl>
|
|
|
|
|
2020-08-28 13:50:27 +00:00
|
|
|
# This is seperate from linux-edge so we can control the release cycle better.
|
2021-04-18 21:56:40 +00:00
|
|
|
# If this kernel is updated and fails to boot it's quite hard to recover the
|
2020-08-28 13:50:27 +00:00
|
|
|
# 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
|
|
|
|
|
2020-04-07 17:56:30 +00:00
|
|
|
pkgname=linux-postmarketos-rockchip
|
2022-10-15 14:21:02 +00:00
|
|
|
pkgver=6.0.2
|
2022-10-12 05:18:04 +00:00
|
|
|
pkgrel=0
|
2020-08-28 13:50:27 +00:00
|
|
|
pkgdesc="Mainline kernel for rockchip devices"
|
2022-10-12 05:18:04 +00:00
|
|
|
arch="aarch64"
|
|
|
|
_carch="arm64"
|
2020-08-28 13:50:27 +00:00
|
|
|
_flavor="${pkgname#linux-}"
|
2020-04-07 17:56:30 +00:00
|
|
|
url="https://kernel.org"
|
|
|
|
license="GPL-2.0-only"
|
2021-07-01 22:55:21 +00:00
|
|
|
options="!strip !check !tracedeps
|
|
|
|
pmb:cross-native
|
2022-09-07 20:43:05 +00:00
|
|
|
pmb:kconfigcheck-community
|
2021-07-01 22:55:21 +00:00
|
|
|
"
|
2020-08-28 13:50:27 +00:00
|
|
|
makedepends="
|
2022-10-12 05:18:04 +00:00
|
|
|
bash
|
2020-08-28 13:50:27 +00:00
|
|
|
bison
|
|
|
|
devicepkg-dev
|
|
|
|
findutils
|
|
|
|
flex
|
|
|
|
installkernel
|
|
|
|
openssl-dev
|
|
|
|
perl
|
|
|
|
rsync
|
2021-07-01 22:55:21 +00:00
|
|
|
gzip
|
2020-08-28 13:50:27 +00:00
|
|
|
xz
|
2021-07-23 15:37:08 +00:00
|
|
|
gmp-dev
|
|
|
|
mpc1-dev
|
|
|
|
mpfr-dev
|
2020-08-28 13:50:27 +00:00
|
|
|
"
|
2020-04-07 17:56:30 +00:00
|
|
|
|
|
|
|
# Source
|
2022-10-12 05:18:04 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
2020-08-28 13:50:27 +00:00
|
|
|
case $pkgver in
|
|
|
|
*.*.*) _kernver=${pkgver%.0};;
|
|
|
|
*.*) _kernver=$pkgver;;
|
|
|
|
esac
|
2021-07-01 22:55:21 +00:00
|
|
|
|
2020-04-07 17:56:30 +00:00
|
|
|
source="
|
2020-08-28 13:50:27 +00:00
|
|
|
https://cdn.kernel.org/pub/linux/kernel/v${_kernver%%.*}.x/linux-$_kernver.tar.xz
|
2022-10-12 05:18:04 +00:00
|
|
|
$_config
|
2020-04-07 17:56:30 +00:00
|
|
|
"
|
2020-08-28 13:50:27 +00:00
|
|
|
builddir="$srcdir/linux-$_kernver"
|
2020-04-07 17:56:30 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
REPLACE_GCCH=0 \
|
|
|
|
. downstreamkernel_prepare
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
2021-07-21 18:06:40 +00:00
|
|
|
make ARCH="$_carch" \
|
2020-08-28 13:50:27 +00:00
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor"
|
2020-04-07 17:56:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
|
|
|
|
|
|
|
|
make -j1 modules_install dtbs_install \
|
|
|
|
ARCH="$_carch" \
|
2020-08-28 13:50:27 +00:00
|
|
|
INSTALL_MOD_STRIP=1 \
|
2020-04-07 17:56:30 +00:00
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
2020-08-28 13:50:27 +00:00
|
|
|
INSTALL_DTBS_PATH="$pkgdir/boot/dtbs-$_flavor"
|
2021-07-23 15:37:08 +00:00
|
|
|
|
2022-10-12 05:18:04 +00:00
|
|
|
gzip -v "$pkgdir"/boot/vmlinuz
|
|
|
|
mv "$pkgdir"/boot/vmlinuz.gz "$pkgdir"/boot/vmlinuz
|
2020-04-07 17:56:30 +00:00
|
|
|
}
|
|
|
|
|
2021-07-01 22:55:21 +00:00
|
|
|
sha512sums="
|
2022-10-15 14:21:02 +00:00
|
|
|
cee8ce158881ef84d475befec58f21f3e5e71e760b012db597204c5693501ec0de2904957ccbc6156bcc697125a44c45fdb0e9d11c844d245eab455b858944f0 linux-6.0.2.tar.xz
|
2022-10-12 05:18:04 +00:00
|
|
|
db32d09836cf9bc933a865355cb6f7cbcac884085f22e50fe06ee40945ada3eb0753475af014a8f27bd9f499e85e1b5f26506b06d6d6f9f30d5222228ce4e041 config-postmarketos-rockchip.aarch64
|
2021-07-01 22:55:21 +00:00
|
|
|
"
|