# Maintainer: Luca Weiss _flavor="postmarketos-qcom-sm6350" pkgname=linux-$_flavor pkgver=5.15_rc3 pkgrel=0 pkgdesc="Mainline Kernel fork for SM6350 devices" arch="aarch64" _carch="arm64" url="https://github.com/z3ntu/linux" license="GPL-2.0-only" options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-nftables " makedepends="bison findutils flex installkernel openssl-dev perl" _repo="linux" _config="config-$_flavor.$arch" _commit="4a0a0b71c40204515735f6baf56483522ad4c0ab" # Source source=" $_repo-$_commit.tar.gz::https://github.com/z3ntu/$_repo/archive/$_commit/$_repo-$_commit.tar.gz $_config " builddir="$srcdir/$_repo-$_commit" 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 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"/usr/share/dtb 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=" dd25a437981ab45954987ab60eae8c7e216de364c08eb72e0458b6287aca2209c75c2cf4de9b62995e9dd8a5673c34346c4402106961a3dcd32761d386cb9f9f linux-4a0a0b71c40204515735f6baf56483522ad4c0ab.tar.gz a53abc4726d0b3bd1705f2fa3d0e64b95365b4086dae7436bef204eeaa73bb554a7bcc0e33b937ac068e275651a900253b7f3202086b8500655e522fd6b86206 config-postmarketos-qcom-sm6350.aarch64 "