# Reference: # Kernel config based on: arch/arm64/configs/defconfig _flavor="postmarketos-qcom-sm8250" pkgname=linux-$_flavor pkgver=6.3.0_rc4 pkgrel=0 pkgdesc="Mainline kernel fork for SM8250" arch="aarch64" _carch="arm64" url="https://gitlab.com/sm8250-mainline/linux" license="GPL-2.0-only" options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-nftables " makedepends=" bash bison findutils flex installkernel openssl-dev perl " # Source _commit="33ca6f1ddae2ea1aeac52b9218105b2abdc54e61" _config="config-$_flavor.$arch" source=" $pkgname-$_commit.tar.gz::https://gitlab.com/sm8250-mainline/linux/-/archive/$_commit.tar.gz $_config " builddir="$srcdir/linux-$_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 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=" 65d26ce88b2df792000c32f841cdf18bd9b8e072404ba31ea5a5b541b9dd381c26115fc6ea3e0cb0c86024f585508b9e5e85ff439d3e33ce1f01e90e7e07924a linux-postmarketos-qcom-sm8250-33ca6f1ddae2ea1aeac52b9218105b2abdc54e61.tar.gz af09b1a7ffd64d9a5dfc907c6ab506eb446cf106dcf6d039c5020c5971047fa44422c8b9bc557e162e2b4c8c6eba201cb1830be5c978394649d2540c419755bd config-postmarketos-qcom-sm8250.aarch64 "