# Reference: # Kernel config based on: arch/arm64/configs/defconfig _flavor="postmarketos-qcom-sm8250" pkgname=linux-$_flavor pkgver=6.3.0_rc6 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="78881161f9dcb3af3491f41f36c72f5adff0e79b" _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=" f2cadd3bbda93660cc832e4da6f1267831f20f1dbbcf96e34b233a73cc49bb0b08ff1fdba8a980a74981f20e5845798bdeba4cb0f6f85bdee49d3fb1cc7e8587 linux-postmarketos-qcom-sm8250-78881161f9dcb3af3491f41f36c72f5adff0e79b.tar.gz 89219b51db706d7e3033dcc5b3c72a3b0109c72c27ec5bd84b2cc6792e040d0c303a69c41ead272329a61ef2e3b8e5ae1e08161059b7ebd832b0f2b9b1866d02 config-postmarketos-qcom-sm8250.aarch64 "