# Maintainer: Alexey Minnekhanov # Co-Maintainer: Luca Weiss _flavor=postmarketos-qcom-msm8974 _config="config-$_flavor.$CARCH" pkgname=linux-$_flavor pkgver=5.19.9 pkgrel=1 _tag="v5.19.9-msm8974" 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=" bash bison findutils flex gmp-dev mpc1-dev mpfr-dev openssl-dev perl postmarketos-installkernel " source=" linux-$_tag.tar.gz::https://github.com/msm8974-mainline/linux/archive/refs/tags/$_tag.tar.gz config-$_flavor.armv7 " builddir="$srcdir/linux-$pkgver-msm8974" 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"/boot/dtbs 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=" db0c0e7069faeb2bc1a3b19334618374c155d66103b0f7f8a5cfd1067e576d942ca3c8a2562aaa2fa698621ce5deae376cb0669dd0f2ac05900d0db7ea2c13e9 linux-v5.19.9-msm8974.tar.gz e3f63dc19cc5f0171ffdfe191c5f6e5ad240097aa00f7cc2a21421f3f6620631b0ba1a0113433bc90ffc284f0901f983f06f89dab462271bd44f2e6e047330ee config-postmarketos-qcom-msm8974.armv7 "