# Maintainer: Ultracoolguy # Kernel config based on: arch/arm64/configs/msm8953_defconfig _flavor="postmarketos-qcom-msm8953" pkgname=linux-$_flavor pkgver=5.13_rc4 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" makedepends="bison findutils flex installkernel openssl-dev perl" _carch="arm64" # Source _commit="c9d3de23448127d4aa41419e7c9f9f3e757895cc" 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=" e78989f913ebebfb804f84074eff159468dbb9039bc35ab7199a3a2646ee84d5fdcfff9b7b6db59e658eaf50b2df7badd2cc8eefa94328e199922d9e314fa984 linux-postmarketos-qcom-msm8953-c9d3de23448127d4aa41419e7c9f9f3e757895cc.tar.gz a3cd41f442ef389bb74c5df0880255e7de6f3c405373a56d5b061cb7ab8be5314740e87ccbaa0fefdbe65de45301d4185340b6341daea2a0684e0e9068f2fdae config-postmarketos-qcom-msm8953.aarch64 "