# Maintainer: Luca Weiss _flavor="postmarketos-qcom-sm6350" pkgname=linux-$_flavor pkgver=6.0.2 pkgrel=1 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="acc6778273d102225893f2497645d7be0dd3f018" # 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=" 2d3354a7ed040c5d894db8ea2e61abf868083a971c706f857ad0d50805c36ea766eb6c2201422c275052d7e9a28a10b05ccf1b45b641f9a3032d35f985b5705f linux-acc6778273d102225893f2497645d7be0dd3f018.tar.gz 9904188341e4fed13ca8a897c94097bce450f526f43a97d8ce83efce8f522423d17e30814d13f8a1a184189d5712d3994f399388ade17cbd7bdc6b1fa9437b35 config-postmarketos-qcom-sm6350.aarch64 "