2021-10-05 12:40:08 +00:00
|
|
|
# Maintainer: Martijn Braam <martijn@brixit.nl>
|
2022-10-30 14:05:17 +00:00
|
|
|
# Co-Maintainer: Jan Jasper de Kroon <jajadekroon@gmail.com>
|
2021-10-05 12:40:08 +00:00
|
|
|
|
|
|
|
pkgname=linux-pine64-pinephonepro
|
2022-12-10 20:30:45 +00:00
|
|
|
pkgver=6.1
|
|
|
|
_pkgver=6.1
|
|
|
|
_tagdate=20221212-1243
|
2022-12-12 12:11:35 +00:00
|
|
|
pkgrel=1
|
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"
|
|
|
|
case $pkgver in
|
2022-12-01 18:23:34 +00:00
|
|
|
*.*rc*) _kernver=$_pkgver
|
|
|
|
_rc=1;;
|
2021-10-05 12:40:08 +00:00
|
|
|
*.*.*) _kernver=${pkgver%.0};;
|
|
|
|
*.*) _kernver=$pkgver;;
|
|
|
|
esac
|
|
|
|
source="
|
2022-12-10 20:30:45 +00:00
|
|
|
https://gitlab.com/pine64-org/linux/-/archive/ppp-$_kernver-$_tagdate/linux-ppp-$_kernver-$_tagdate.tar.gz
|
2021-10-05 12:40:08 +00:00
|
|
|
config-$_flavor.aarch64
|
2022-12-10 20:30:45 +00:00
|
|
|
stk3311-pinctl-patch.patch
|
2021-10-05 12:40:08 +00:00
|
|
|
"
|
2022-12-10 20:30:45 +00:00
|
|
|
builddir="$srcdir/linux-ppp-$_kernver-$_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="
|
2022-12-10 20:30:45 +00:00
|
|
|
9fe6d47bcd8799a0d1ab4eb8bf0e3c52854b28f4de0f75789c4bb5aad48e76aea4edecfc36350623ed320f43b480c69aa2c83f4244c51f1c0d0cc7f610f5882b linux-ppp-6.1-20221212-1243.tar.gz
|
2022-12-12 12:11:35 +00:00
|
|
|
3223648b5269c902445297a4da4a29cea2e92ced6ca22c1a75cf02b71c21de650b605d6c0a1028f02889ba971bac2e17e0418668dbc020245b4396e52f8bebed config-pine64-pinephonepro.aarch64
|
2022-12-10 20:30:45 +00:00
|
|
|
b04b4081b5716802bfe6323f9b1c5fce503bef92e680e8ee49d3c1bc579bed5e79d23054db11f39620c055167a0444104423ec497bc7b60d7aaa115e2f7db775 stk3311-pinctl-patch.patch
|
2021-10-05 12:40:08 +00:00
|
|
|
"
|