# 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_rc3 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_rc3" # 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=" a4096863f06d00edba6af76f89ea24047badba5d1d1363ba31701dd1088aab34c470a5552b8b3db4cb5d21065496ccac9aa59c05e4d15561d4cfb03706d8962e linux-sdm845-6.1.0_rc3.tar.gz b2bcef118e3468187a26aa7ca4a79eea84292f69d7f9fecd943d752bb6d8fee44e1d504732f506350e37c9553881b051d4859e49c2e4f836242f43d881c37abe config-postmarketos-qcom-sdm845.aarch64 "