# Maintainer: David Wronek _flavor="postmarketos-qcom-sm7125" pkgname=linux-$_flavor pkgver=6.9.2 pkgrel=2 pkgdesc="Mainline Kernel fork for SM7125 devices" arch="aarch64" _carch="arm64" url="https://kernel.org" license="GPL-2.0-only" options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-nftables " makedepends="bison findutils flex postmarketos-installkernel openssl-dev perl" source=" https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/linux-$pkgver.tar.xz config-$_flavor.$arch " builddir="$srcdir/linux-$pkgver" 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() { 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=" a168f5b3e7ee7451d5bb1c7f6c090d6002330a4529ef74b2e47f6902ba3d6feaa8dc89f7b5a072d52f6933fd08354a0ff1e12f22240ce53c758c144d4ad132cd linux-6.9.2.tar.xz 6b452137dd0797a5c27d64df216f9ade421ef23e5e84294b482c0a8e486221fd419a96d2f438bf2a56ca36e7c716899a915ae979be3e7dd0b8eac322f24b0181 config-postmarketos-qcom-sm7125.aarch64 "