# Maintainer: Ultracoolguy # Kernel config based on: arch/arm64/configs/msm8953_defconfig _flavor="postmarketos-qcom-msm8953" pkgname=linux-$_flavor pkgver=5.9_rc7 pkgrel=1 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" makedepends="bison findutils flex installkernel openssl-dev perl" _carch="arm64" # Source _commit="cf1367217f9d7a558ca4fdafdf56329801c23580" 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="2ae74b4af32ce7a4258a85eeeb795448627b85ee6879645b4c3102a02ffe36541c90ad658f63ad98ef40feda2afe44ad27707ecef51b6d1bc9295003027e61e5 linux-postmarketos-qcom-msm8953-cf1367217f9d7a558ca4fdafdf56329801c23580.tar.gz 564c755c851354b9680b62f501b36d5a6939d1ddae756b85ad127f8040897b377cf5c451c82100cb4b9ed8dc21f18d0d1b614694d70f0a32649184beabfe4e4e config-postmarketos-qcom-msm8953.aarch64"