2024-03-17 22:06:06 +00:00
|
|
|
# Maintainer: Quade Curry <qc8086@qc8086.com>
|
2020-04-07 17:56:30 +00:00
|
|
|
pkgname=linux-postmarketos-rockchip
|
2024-06-18 21:43:30 +00:00
|
|
|
pkgver=6.6.34
|
2024-07-28 15:29:24 +00:00
|
|
|
pkgrel=1
|
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
|
2024-06-18 21:43:30 +00:00
|
|
|
postmarketos-installkernel
|
2020-08-28 13:50:27 +00:00
|
|
|
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" \
|
2023-08-01 14:08:58 +00:00
|
|
|
INSTALL_DTBS_PATH="$pkgdir/boot/dtbs"
|
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
|
2023-02-23 14:17:21 +00:00
|
|
|
|
|
|
|
install -D "$builddir"/include/config/kernel.release \
|
|
|
|
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
|
2020-04-07 17:56:30 +00:00
|
|
|
}
|
|
|
|
|
2021-07-01 22:55:21 +00:00
|
|
|
sha512sums="
|
2024-06-18 21:43:30 +00:00
|
|
|
eaa792be65c4cdfd37b84d4dadd22086c8507c1f78d538255cff03595e1caee0f88b521c398b6bc9ab3632010133cff5c7b14200413d54cf0a38bea79c2fd29f linux-6.6.34.tar.xz
|
2024-07-28 15:29:24 +00:00
|
|
|
d07876065dac96a4f87f4853f0a61264cd41ea7248eb5c7beca04726f7d0b52add9718a20115546d8b9f891c4ca0d1bde98a37ed8c798ea3797a3bdfe98de64b config-postmarketos-rockchip.aarch64
|
2021-07-01 22:55:21 +00:00
|
|
|
"
|