# Maintainer: Danila Tikhonov # Co-Maintainer: David Wronek _flavor="postmarketos-qcom-sm7150" pkgname=linux-$_flavor pkgver=6.6.1 pkgrel=0 pkgdesc="Mainline Kernel fork for SM7150 devices" arch="aarch64" _carch="arm64" url="https://github.com/sm7150-mainline/linux" license="GPL-2.0-only" options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-nftables " makedepends="bison findutils flex installkernel openssl-dev perl" _tag="$pkgver-r$pkgrel" # Source source=" $pkgname-v$_tag.tar.gz::$url/archive/v$_tag.tar.gz config-$_flavor.$arch " 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() { 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=" b77cf09c086cf0f2ef12d3593849c320fd2005a2fdd0d9e5c1e2121c6fb7979c49bb5fd7d09ff8cffbd7400ebf329d5fb1f592e5456bc0ccf70b629e958eed08 linux-postmarketos-qcom-sm7150-v6.6.1-r0.tar.gz 293b4a84f4ea0774e552faf41c53232245995948183df10ba0e90834b1057210e1706832b60bf8a639024e840f8ac7ea173829faae00a71b64bbb28cf81d202c config-postmarketos-qcom-sm7150.aarch64 "