# Maintainer: Yassine Oudjana (Tooniis) # Kernel config based on: arch/arm64/configs/defconfig _flavor="postmarketos-qcom-msm8996" pkgname=linux-$_flavor pkgver=5.17.6 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" license="GPL-2.0-only" options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-nftables pmb:kconfigcheck-anbox pmb:kconfigcheck-containers pmb:kconfigcheck-zram " 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=" cd303502509198b52c4d818388645ecc20729cd751d6283d8dd3013cb12f7e17498d1ceab26fbc15c78b32d8b86a33f6b3e708dca1b8de4f811c0588078b981a linux-v5.17.6-msm8996.tar.gz 6e779ee346d73b8ff6ee827d32133d24a5ac6e7e98f7ec7ac8e94719a32cc873720beb6a8080edafdbe2c787dbce34bfbd380eb6b062713d771bed306589b7e9 config-postmarketos-qcom-msm8996.aarch64 "