# Maintainer: Caleb Connolly # Co-Maintainer: Joel Selvaraj # Stable Linux kernel with patches for SDM845 devices # Kernel config based on: arch/arm64/configs/defconfig and sdm845.config _flavor="postmarketos-qcom-sdm845" pkgname=linux-$_flavor pkgver=6.1.0_rc4 pkgrel=0 pkgdesc="Mainline Kernel fork for SDM845 devices" arch="aarch64" _carch="arm64" url="https://gitlab.com/sdm845-mainline/linux" license="GPL-2.0-only" options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-community" makedepends="bash bison findutils flex installkernel openssl-dev perl" _config="config-$_flavor.$arch" _tag="sdm845-6.1.0_rc4" # Source source=" linux-$_tag.tar.gz::https://gitlab.com/sdm845-mainline/linux/-/archive/$_tag/linux-$_tag.tar.gz $_config " builddir="$srcdir/linux-$_tag" prepare() { default_prepare cp "$srcdir/config-$_flavor.$arch" .config } build() { unset LDFLAGS make ARCH="$_carch" CC="${CC:-gcc}" \ KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor" } package() { install -Dm644 "$builddir/arch/$_carch/boot/Image.gz" \ "$pkgdir/boot/vmlinuz" make 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=" f120f2214143b19ded041d1412c4926cdcbda138343bdc59fe515726cff5a2fe2c29a9754071ebde909aad440abdc581c23606fd235d4ab1f2f56bb6ee9aa6ad linux-sdm845-6.1.0_rc4.tar.gz 36276338fbc5f8e4a691a3fcbbfdf547e0f2e47d94343a5a1a61ae1fe73f392e90ed2e08a693ed180270af2e6d02ea90b4a5a9e2269813d60b990d68bfca3b4d config-postmarketos-qcom-sdm845.aarch64 "