# Maintainer: Alexey Minnekhanov # Co-Maintainer: Luca Weiss _flavor=postmarketos-qcom-msm8974 _config="config-$_flavor.$CARCH" pkgname=linux-$_flavor pkgver=5.15.9 pkgrel=0 _tag="v5.15.9-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=" https://gitlab.com/postmarketOS/linux-postmarketos/-/archive/$_tag/linux-postmarketos-$_tag.tar.bz2 config-$_flavor.armv7 " builddir="$srcdir/linux-postmarketos-$_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=" 7ac20ffbb41d37c3aeff071f1871af740a936adc55c27effb54fd6378a398435b5aa08240325900ab1a574bb96c7f491ad713b6b8fb046f8e6d5baa416a5a820 linux-postmarketos-v5.15.9-pmos.tar.bz2 602bb8e1c1a1fa79043a9db825869bcc5d82b8081ebd5493f39713383635f28d7bd9757fa2d2233c79cb7e7007e832971b4b9b9bdb930ea6c2a5c3971ddd50ce config-postmarketos-qcom-msm8974.armv7 "