# Maintainer: Luca Weiss _flavor="postmarketos-qcom-sm6350" pkgname=linux-$_flavor pkgver=6.4.2 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-community " makedepends="bash bison findutils flex installkernel openssl-dev perl" _repo="linux" _config="config-$_flavor.$arch" _commit="f33e98821f41bc160a6985355c4a2d1dc5223afa" # 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() { 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=" 310907bca81377fd4753cf9365ffa5e7eeef13fb0d14c99487f14a8284a717fcf70aa360c7612aa6970498f7241f4606d1ebcef0b3f2477d147b51af983a92ac linux-f33e98821f41bc160a6985355c4a2d1dc5223afa.tar.gz 37ab3a2423b7cd6c6f19ea4ee7d925a6b150ebd82997d3d1417262a482b34402d9fbf12e4639f34af246d7c106aa7893e078cc6755b50df4d069b4286b63a375 config-postmarketos-qcom-sm6350.aarch64 "