2023-11-02 08:08:02 +00:00
|
|
|
# Maintainer: Jan Jasper de Kroon <jajadekroon@gmail.com>
|
2021-10-05 12:40:08 +00:00
|
|
|
pkgname=linux-pine64-pinephonepro
|
2023-11-05 08:09:29 +00:00
|
|
|
pkgver=6.6.0
|
|
|
|
_pkgver=6.6
|
|
|
|
_tagdate=20231104-22589
|
2024-07-30 20:02:48 +00:00
|
|
|
pkgrel=3
|
2021-10-05 12:40:08 +00:00
|
|
|
pkgdesc="Mainline kernel for the pinephone pro"
|
|
|
|
arch="aarch64"
|
|
|
|
_flavor="${pkgname#linux-}"
|
|
|
|
url="https://kernel.org"
|
|
|
|
license="GPL-2.0-only"
|
|
|
|
options="!strip !check !tracedeps
|
|
|
|
pmb:cross-native
|
2022-09-07 20:43:05 +00:00
|
|
|
pmb:kconfigcheck-community
|
2021-10-05 12:40:08 +00:00
|
|
|
"
|
|
|
|
makedepends="
|
2022-10-30 14:05:17 +00:00
|
|
|
bash
|
2021-10-05 12:40:08 +00:00
|
|
|
bison
|
|
|
|
findutils
|
|
|
|
flex
|
|
|
|
gmp-dev
|
|
|
|
gzip
|
2021-12-12 14:29:00 +00:00
|
|
|
linux-headers
|
2021-10-05 12:40:08 +00:00
|
|
|
mpc1-dev
|
|
|
|
mpfr-dev
|
|
|
|
openssl-dev
|
|
|
|
perl
|
|
|
|
postmarketos-installkernel
|
|
|
|
rsync
|
|
|
|
xz
|
|
|
|
"
|
|
|
|
|
|
|
|
case "$CARCH" in
|
|
|
|
aarch64*) _carch="arm64" ;;
|
|
|
|
arm*) _carch="arm" ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# Source
|
|
|
|
_config="config-$_flavor.$CARCH"
|
|
|
|
source="
|
2023-01-22 08:58:13 +00:00
|
|
|
https://gitlab.com/pine64-org/linux/-/archive/ppp-$_pkgver-$_tagdate/linux-ppp-$_pkgver-$_tagdate.tar.gz
|
2021-10-05 12:40:08 +00:00
|
|
|
config-$_flavor.aarch64
|
|
|
|
"
|
2023-01-22 08:58:13 +00:00
|
|
|
builddir="$srcdir/linux-ppp-$_pkgver-$_tagdate"
|
2021-10-05 12:40:08 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
cp "$srcdir/config-$_flavor.$CARCH" .config
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
mkdir -p "$pkgdir"/boot
|
|
|
|
make zinstall modules_install dtbs_install \
|
|
|
|
ARCH="$_carch" \
|
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
|
|
INSTALL_MOD_STRIP=1 \
|
|
|
|
INSTALL_PATH="$pkgdir"/boot \
|
|
|
|
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs-$_flavor
|
|
|
|
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
|
|
|
|
|
|
|
|
install -D "$builddir"/include/config/kernel.release \
|
|
|
|
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
sha512sums="
|
2023-11-05 08:09:29 +00:00
|
|
|
d59c410ecc1a824b7b9a38f36b224693812003320220a3464a648084152023ed8be48d0448eb8054cd2b1d42befd5e8958d3ad243e50138e1c9d0269ac2917ea linux-ppp-6.6-20231104-22589.tar.gz
|
2024-07-30 20:02:48 +00:00
|
|
|
0806ec3859bb71739c59108e66fe0f45c9db384f0beab9b736627e79b45363e2c0bc466e6b584c00f91ce262bd7a4a2d14c8f14eee1bb8158c7deddd18452bda config-pine64-pinephonepro.aarch64
|
2021-10-05 12:40:08 +00:00
|
|
|
"
|