# Maintainer: Alexey Minnekhanov # Co-Maintainer: Luca Weiss _flavor=postmarketos-qcom-msm8974 _config="config-$_flavor.$CARCH" pkgname=linux-$_flavor pkgver=6.2.1 pkgrel=0 _tag="v$pkgver-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-community " 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=" 15296d4c7f5c8819e5a1465372e6781cd1cbecb08a7eaaa52aaea786741f9d759d85a5d3cf2451dd5d6f691924ec06e55e08db1f281ce779dff8f29cf3169bb2 linux-v6.2.1-msm8974.tar.gz 1ca74f72ddb44cf458c8958c288761b446f2b8e07a2e46b26e853c7069fa3d34d861be105aef236f56b788092b505b5ea8dd4186efdf82a503ff4b972d48bd42 config-postmarketos-qcom-msm8974.armv7 "