# Reference: # Kernel config based on: arch/arm64/configs/defconfig # Maintainer: Jianhua Lu _flavor="postmarketos-qcom-sm8250" pkgname=linux-$_flavor pkgver=6.10.0 pkgrel=1 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 pmb:kconfigcheck-community " makedepends=" bash bison findutils flex openssl-dev perl postmarketos-installkernel python3 " # Source _tag="sm8250-$pkgver" _config="config-$_flavor.$arch" source=" $pkgname-$_tag.tar.gz::https://gitlab.com/sm8250-mainline/linux/-/archive/$_tag/linux-$_tag.tar.gz $_config " 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=" 2fdaa13c25c573a1b41dec1c6ad71bdbb4bb18f81c41aea1d114e631215371d7970e5a6a407d977366cacfcfe66229788668942c774fddb56037a493e87b2402 linux-postmarketos-qcom-sm8250-sm8250-6.10.0.tar.gz 7ac069d4d8dda94eb547a50564838632dc40f663fbd9abcd8d367ab8344e3dde8e62f6339a63c96a8654b474d83f4726cd61d78d81655581439ce0a84ce05ee4 config-postmarketos-qcom-sm8250.aarch64 "