# Maintainer: M0Rf30 # Co-Maintainer: Ultra-azu # Co-Maintainer: Barnabas Czeman # Kernel config based on: defconfig, msm8953.config, and device configs _flavor="postmarketos-qcom-msm8953" pkgname=linux-$_flavor pkgver=6.10.0 pkgrel=0 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 python3 " _tag="$pkgver-r0" source=" $pkgname-v$_tag.tar.gz::$url/archive/v$_tag.tar.gz config-$_flavor.aarch64 " builddir="$srcdir/linux-$_tag" 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=" e1204a5424e9991d2a48ece37c6924e72d5d82aed423d102cb6e6f9f309dfccb1814b63dd6dce4898ebed62055edb8302f0fe22e353698200913dac34ecf8bef linux-postmarketos-qcom-msm8953-v6.10.0-r0.tar.gz d281fe69f1b06855f8c450a09a4fc30d3b1c9ef6c34ebb09197a51461c92fb73681989b22df8f49ceecf69ed1f0323584bf72982e166afe3769ebf6c1995b284 config-postmarketos-qcom-msm8953.aarch64 "