# Maintainer: M0Rf30 # Co-Maintainer: Ultra-azu # Kernel config based on: defconfig, msm8953.config, and device configs _flavor="postmarketos-qcom-msm8953" pkgname=linux-$_flavor pkgver=6.3.0 pkgrel=3 pkgdesc="Close to mainline linux kernel for Qualcomm Snapdragon MSM8953" arch="aarch64" _carch="arm64" url="https://github.com/msm8953-mainline/linux" license="GPL-2.0-only" options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-community " makedepends=" bash bison findutils flex openssl-dev perl postmarketos-installkernel " # Source _commit="285c565848653c036e2a507f5612382698deac50" source=" $pkgname-$_commit.tar.gz::https://github.com/msm8953-mainline/linux/archive/$_commit.tar.gz config-$_flavor.aarch64 " 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 ))-$_flavor" } package() { mkdir -p "$pkgdir"/boot make zinstall modules_install dtbs_install \ ARCH="$_carch" \ INSTALL_PATH="$pkgdir"/boot \ INSTALL_MOD_PATH="$pkgdir" \ INSTALL_MOD_STRIP=1 \ INSTALL_DTBS_PATH="$pkgdir/boot/dtbs" rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source install -Dm644 "$builddir/include/config/kernel.release" \ "$pkgdir/usr/share/kernel/$_flavor/kernel.release" } sha512sums=" cb9c12383a938c39ed659d83c646ab91fe289a52f3cdcca77f456ff963338c87c3beb572740d7d3b934a10fb7bce519ff2347a7ad15870c6d2d88c6df2820001 linux-postmarketos-qcom-msm8953-285c565848653c036e2a507f5612382698deac50.tar.gz 9249aa3d1b6c554ecae1b6a82160448d68e4b221b34a1c200eb2ddaeafcb6855a4c558a0282de79fec995e553d31296b0de29d73f12035cef1c5d4cc9c711817 config-postmarketos-qcom-msm8953.aarch64 "