pmaports/device/community/linux-pine64-pinephonepro/APKBUILD
Jan Jasper de Kroon 9bba04d366
linux-pine64-pinephonepro: upgrade to 6.4.7 (MR 4287)
[ci:skip-build]: already built successfully in CI
2023-08-08 09:31:02 +02:00

78 lines
1.8 KiB
Text

# Maintainer: Martijn Braam <martijn@brixit.nl>
# Co-Maintainer: Jan Jasper de Kroon <jajadekroon@gmail.com>
pkgname=linux-pine64-pinephonepro
pkgver=6.4.7
_pkgver=6.4
_tagdate=20230801-1055
pkgrel=1
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
pmb:kconfigcheck-community
"
makedepends="
bash
bison
findutils
flex
gmp-dev
gzip
linux-headers
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="
https://gitlab.com/pine64-org/linux/-/archive/ppp-$_pkgver-$_tagdate/linux-ppp-$_pkgver-$_tagdate.tar.gz
config-$_flavor.aarch64
"
builddir="$srcdir/linux-ppp-$_pkgver-$_tagdate"
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="
bcf86ccbbf3f9f7e2e47c1d7d59c7da344fab58f9605c27af17864f3be30ca016318028ca9baec58e3ef72535e69854bd8a07ed14d925fe5a774db5595644768 linux-ppp-6.4-20230801-1055.tar.gz
afa9c8a0ec00c4d8396de3c422eb1e4a9ef0a012e48e6ef49d9bfd5bdbf090bc1d3d7c7685ceef13c8cd6b3f48a255f286d65e13e7d6b83a5c24bb5408529817 config-pine64-pinephonepro.aarch64
"