deed403153
Contains fix for Poco F1 display issue when booting and enables sensor support for Poco F1. [ci:ignore-count] [ci:skip-build]: already built successfully in CI
80 lines
2.8 KiB
Text
80 lines
2.8 KiB
Text
# Maintainer: Caleb Connolly <caleb@connolly.tech>
|
|
# Co-Maintainer: Joel Selvaraj <joelselvaraj.oss@gmail.com>
|
|
# Stable Linux kernel with patches for SDM845 devices
|
|
# Kernel config based on: arch/arm64/configs/defconfig and sdm845.config
|
|
|
|
_flavor="postmarketos-qcom-sdm845"
|
|
pkgname=linux-$_flavor
|
|
pkgver=6.9.0
|
|
pkgrel=0
|
|
pkgdesc="Mainline Kernel fork for SDM845 devices"
|
|
arch="aarch64"
|
|
_carch="arm64"
|
|
url="https://gitlab.com/sdm845-mainline/linux"
|
|
license="GPL-2.0-only"
|
|
options="!check !tracedeps
|
|
pmb:cross-native
|
|
pmb:kconfigcheck-community"
|
|
makedepends="bash bison findutils flex installkernel openssl-dev perl zstd"
|
|
|
|
_config="config-$_flavor.$arch"
|
|
_tag="sdm845-6.9.0"
|
|
|
|
# Source
|
|
source="
|
|
linux-$_tag.tar.gz::https://gitlab.com/sdm845-mainline/linux/-/archive/$_tag/linux-$_tag.tar.gz
|
|
$_config
|
|
0001-arm64-dts-qcom-sdm845-xiaomi-polaris-Enable-ath10k-h.patch
|
|
0002-drm-panel-Enable-prepare_prev_first-flag-for-NT35596.patch
|
|
"
|
|
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() {
|
|
if [ -e "$builddir/arch/$_carch/boot/vmlinuz.efi" ]; then
|
|
# ZBOOT EFI decompressor for EFI booting
|
|
install -Dm644 "$builddir/arch/$_carch/boot/vmlinuz.efi" \
|
|
"$pkgdir/boot/linux.efi"
|
|
|
|
# Old GZIP'd kernel image for boot.img compatibility
|
|
install -Dm644 "$builddir/arch/$_carch/boot/vmlinuz" \
|
|
"$pkgdir/boot/vmlinuz"
|
|
else
|
|
echo "WARNING: CONFIG_ZBOOT not enabled!"
|
|
install -Dm644 "$builddir/arch/$_carch/boot/Image.gz" \
|
|
"$pkgdir/boot/vmlinuz"
|
|
fi
|
|
|
|
make modules_install dtbs_install \
|
|
ARCH="$_carch" \
|
|
INSTALL_PATH="$pkgdir"/boot/ \
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
INSTALL_MOD_STRIP=1 \
|
|
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs-tmp
|
|
|
|
mkdir -p "$pkgdir"/boot/dtbs/qcom
|
|
cp -r "$pkgdir"/boot/dtbs-tmp/qcom/sdm8* "$pkgdir"/boot/dtbs/qcom
|
|
rm -rf "$pkgdir"/boot/dtbs-tmp
|
|
|
|
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="
|
|
42176b7b292a67ec85abe2faefd3e4c571425a35bcc7e63b219a9e06f73e7ed3f21fb5ea6e66072d96d31125dbd35b32ca82ebce2423e8268aa82ad56f230733 linux-sdm845-6.9.0.tar.gz
|
|
012db792018c7a98c530db1a3edf8a737a9350be7e0db4fc8d2099df94add3277736193d7f0f3a571228f98025c46c770afb4ca20dfe9ce106bd4d109679dbd0 config-postmarketos-qcom-sdm845.aarch64
|
|
e0ae8b9da09cd2552244cfbcd6a63272c766d082306573a679497ab0bd30a44dfa0023503a7628b7ea87238a62da13704de5e2a57952310c7866b770e5c474ad 0001-arm64-dts-qcom-sdm845-xiaomi-polaris-Enable-ath10k-h.patch
|
|
d7c857500348a1420ccd1a255c667704e54ee88f5c563bcb92885aaa5a9b5dc5a87d12ab782822de523d01c63b277ff60b57cc5307a0663bf42ad7b69da3d1c5 0002-drm-panel-Enable-prepare_prev_first-flag-for-NT35596.patch
|
|
"
|