pmaports/device/testing/linux-postmarketos-qcom-msm8974/APKBUILD
Alexey Min 096cd05d1c
linux-postmarketos-qcom-msm8974: switch repo source (MR 2972)
In preparation to removal of linux-postmarketos repo, switch
source to different source mirror.

P.S: sourcehut can't serve bz2 archives, I had to switch to gz
P.P.S: I'm not sure I'll keep repo on sourcehut forever, but let's try

See also: https://gitlab.com/postmarketOS/postmarketos/-/issues/47

[ci:skip-vercheck]
[ci:skip-build] Already built fine on CI in MR
2022-03-07 20:15:22 +01:00

68 lines
1.8 KiB
Text

# Maintainer: Alexey Minnekhanov <alexeymin@postmarketos.org>
# Co-Maintainer: Luca Weiss <luca@z3ntu.xyz>
_flavor=postmarketos-qcom-msm8974
_config="config-$_flavor.$CARCH"
pkgname=linux-$_flavor
pkgver=5.16.0
pkgrel=0
_tag="v5.16.0-pmos"
pkgdesc="Kernel close to mainline with extra patches for Qualcomm MSM8974 devices"
arch="armv7"
_carch="arm"
url="https://kernel.org/"
license="GPL-2.0-only"
options="!strip !check !tracedeps
pmb:cross-native
pmb:kconfigcheck-anbox
pmb:kconfigcheck-containers
pmb:kconfigcheck-iwd
pmb:kconfigcheck-nftables
pmb:kconfigcheck-zram
"
makedepends="
bison
findutils
flex
gmp-dev
mpc1-dev
mpfr-dev
openssl-dev
perl
postmarketos-installkernel
"
source="
msm8974-mainline-$_tag.tar.gz::https://git.sr.ht/~minlexx/msm8974-mainline/archive/$_tag.tar.gz
config-$_flavor.armv7
"
builddir="$srcdir/msm8974-mainline-$_tag"
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_PATH="$pkgdir"/boot \
INSTALL_MOD_PATH="$pkgdir" \
INSTALL_MOD_STRIP=1 \
INSTALL_DTBS_PATH="$pkgdir"/usr/share/dtb
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="
04339a90bd807b7ad65085b5eaca110f8bc6d52d566fcea67200cf497b4f01762970954083d650fa22b02167de5004f6b991800876736c8634590aea9e7f7012 msm8974-mainline-v5.16.0-pmos.tar.gz
3467367032ca8a50688b34d57a50649526c1c6e6092bc1deb38c062aa3864f82de9332741b17db5a9a70654381636ebb90810880eb1fb5a29e513be639ebf2e0 config-postmarketos-qcom-msm8974.armv7
"