# Maintainer: Ultracoolguy # Kernel config based on: defconfig, msm8953.config, and device configs _flavor="postmarketos-qcom-msm8953" pkgname=linux-$_flavor pkgver=5.18.3 pkgrel=0 pkgdesc="Mainline kernel fork for Qualcomm MSM8953 devices" arch="aarch64" url="https://github.com/msm8953-mainline/linux" license="GPL-2.0-only" options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-anbox pmb:kconfigcheck-nftables " makedepends=" bison findutils flex openssl-dev perl postmarketos-installkernel " _carch="arm64" # Source _commit="649f00020e253e8f84f2df66efaff07c6c49e815" source=" $pkgname-$_commit.tar.gz::https://github.com/msm8953-mainline/linux/archive/$_commit.tar.gz config-$_flavor.$arch " 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 )) } package() { mkdir -p "$pkgdir"/boot make zinstall modules_install dtbs_install \ ARCH="$_carch" \ INSTALL_PATH="$pkgdir"/boot \ INSTALL_MOD_PATH="$pkgdir" \ INSTALL_DTBS_PATH="$pkgdir"/usr/share/dtb 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=" ba6c5b0ab6020891d14b85688e27a251bbf4a74e73ee1630cb3d6ba967444ac4de8b51cc04aeeb2246e33883068c1a23ce0b764d2a18fd378da8c2b7badeaf84 linux-postmarketos-qcom-msm8953-649f00020e253e8f84f2df66efaff07c6c49e815.tar.gz 0f6327f8ae860bf4fb09d1df4f135524a87546c956eeb708ec0bc2b886ff4db06e6f1d3611080337de59ec53eb3434c122116fe4c2de21a83c36a8a4f0189674 config-postmarketos-qcom-msm8953.aarch64 "