# Kernel config based on: arch/arm64/configs/defconfig _flavor="postmarketos-qcom-msm8996" pkgname=linux-$_flavor pkgver=5.11.10 pkgrel=0 pkgdesc="Kernel close to mainline with extra patches for Qualcomm MSM8996 devices" arch="aarch64" _carch="arm64" url="https://gitlab.com/msm8996-mainline/linux-msm8996" license="GPL-2.0-only" options="!strip !check !tracedeps pmb:cross-native" makedepends="bison findutils flex installkernel openssl-dev perl" # Source _tag=v${pkgver//_/-}-msm8996 source=" linux-msm8996-$_tag.tar.gz::$url/-/archive/$_tag/linux-msm8996-$_tag.tar.gz config-$_flavor.$arch " builddir="$srcdir/linux-msm8996-$_tag" prepare() { default_prepare cp "$srcdir/config-$_flavor.$CARCH" .config } build() { unset LDFLAGS make ARCH="$_carch" CC="${CC:-gcc}" \ KBUILD_BUILD_VERSION=$((pkgrel + 1 )) } package() { mkdir -p "$pkgdir"/boot install -Dm644 "$builddir/arch/$_carch/boot/Image.gz" \ "$pkgdir/boot/vmlinuz-$_flavor" install -D "$builddir/include/config/kernel.release" \ "$pkgdir/usr/share/kernel/$_flavor/kernel.release" make modules_install dtbs_install \ ARCH="$_carch" \ INSTALL_MOD_PATH="$pkgdir" \ INSTALL_MOD_STRIP=1 \ INSTALL_DTBS_PATH="$pkgdir"/usr/share/dtb } sha512sums="2f5a4118d11208a00545a0d50a58f595a19c4b9cb8b217f0cf5e20cb87ac3d46295bca871618ae8b6f398229d6e5d24eb25087c1679501828e956ad259882cd0 linux-msm8996-v5.11.10-msm8996.tar.gz 624ab3d9e2d2d40dc671fbcaf51826c61addbb9a9160c21dffaa98f23c9651d9afb004c282e236d0c3d73ae264000df2d861c1a07bd942f6187eda9e273adf9e config-postmarketos-qcom-msm8996.aarch64"