# Maintainer: Yassine Oudjana (Tooniis) # Kernel config based on: arch/arm64/configs/defconfig _flavor="postmarketos-qcom-msm8996" pkgname=linux-$_flavor pkgver=5.18.15 pkgrel=1 pkgdesc="Kernel close to mainline with extra patches for Qualcomm MSM8996 devices" arch="aarch64" _carch="arm64" url="https://gitlab.com/msm8996-mainline/linux" license="GPL-2.0-only" options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-community " makedepends="bison findutils flex installkernel openssl-dev perl" # Source _tag=v${pkgver//_/-}-msm8996 source=" linux-$_tag.tar.gz::$url/-/archive/$_tag/linux-$_tag.tar.gz config-$_flavor.$arch " builddir="$srcdir/linux-$_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" 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=" c15a5ea9643ca745b23a7f4d53906b0586a2f962ef185e57af78b38ca058e49b8f5535f5f7493fba83686011f8ccaa269a93351fdc58c6a0cb3305b1b1cc12e9 linux-v5.18.15-msm8996.tar.gz ca0f8875c9dce5621ea2dca913907631456cc5d13d822822a33b0270e0d648b3e60749ace78502039bdc6671c40892f000311095420733fb8aab6966d4dff0e5 config-postmarketos-qcom-msm8996.aarch64 "