2021-02-16 06:45:10 +00:00
|
|
|
# Maintainer: Caleb Connolly <caleb@connolly.tech>
|
2022-10-05 14:37:47 +00:00
|
|
|
# Co-Maintainer: Joel Selvaraj <joelselvaraj.oss@gmail.com>
|
2021-02-16 06:45:10 +00:00
|
|
|
# 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
|
2023-11-29 01:22:08 +00:00
|
|
|
pkgver=6.6.3
|
2024-02-27 12:56:44 +00:00
|
|
|
pkgrel=4
|
2021-02-16 06:45:10 +00:00
|
|
|
pkgdesc="Mainline Kernel fork for SDM845 devices"
|
|
|
|
arch="aarch64"
|
|
|
|
_carch="arm64"
|
2021-05-21 01:51:10 +00:00
|
|
|
url="https://gitlab.com/sdm845-mainline/linux"
|
2021-02-16 06:45:10 +00:00
|
|
|
license="GPL-2.0-only"
|
2023-06-27 20:57:36 +00:00
|
|
|
options="!check !tracedeps
|
2021-07-10 00:21:06 +00:00
|
|
|
pmb:cross-native
|
2022-09-07 20:43:05 +00:00
|
|
|
pmb:kconfigcheck-community"
|
2023-06-27 20:57:36 +00:00
|
|
|
makedepends="bash bison findutils flex installkernel openssl-dev perl zstd"
|
2021-02-16 06:45:10 +00:00
|
|
|
|
|
|
|
_config="config-$_flavor.$arch"
|
2023-11-29 20:49:16 +00:00
|
|
|
_tag="sdm845-6.6.3-r3"
|
2021-02-16 06:45:10 +00:00
|
|
|
|
|
|
|
# Source
|
|
|
|
source="
|
2022-08-01 16:09:14 +00:00
|
|
|
linux-$_tag.tar.gz::https://gitlab.com/sdm845-mainline/linux/-/archive/$_tag/linux-$_tag.tar.gz
|
2021-02-16 06:45:10 +00:00
|
|
|
$_config
|
2024-02-27 12:56:44 +00:00
|
|
|
0001-arm64-dts-qcom-sdm845-xiaomi-polaris-Enable-ath10k-h.patch
|
|
|
|
0002-drm-panel-Enable-prepare_prev_first-flag-for-NT35596.patch
|
2021-02-16 06:45:10 +00:00
|
|
|
"
|
2022-08-01 16:09:14 +00:00
|
|
|
builddir="$srcdir/linux-$_tag"
|
2021-02-16 06:45:10 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
cp "$srcdir/config-$_flavor.$arch" .config
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
2021-05-12 17:44:20 +00:00
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor"
|
2021-02-16 06:45:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2023-10-14 20:36:05 +00:00
|
|
|
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
|
2021-07-19 22:21:08 +00:00
|
|
|
|
|
|
|
make modules_install dtbs_install \
|
2021-02-16 06:45:10 +00:00
|
|
|
ARCH="$_carch" \
|
|
|
|
INSTALL_PATH="$pkgdir"/boot/ \
|
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
|
|
INSTALL_MOD_STRIP=1 \
|
2023-12-05 15:39:27 +00:00
|
|
|
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
|
|
|
|
|
2021-02-16 06:45:10 +00:00
|
|
|
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
|
|
|
|
|
|
|
|
install -D "$builddir"/include/config/kernel.release \
|
|
|
|
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
|
|
|
|
}
|
|
|
|
|
2021-05-07 09:50:55 +00:00
|
|
|
sha512sums="
|
2023-11-29 20:49:16 +00:00
|
|
|
621ee00668c8739503042074615e95949e55124f48c488de83bcce733fa4b140576f26ab37d47a886136f8167832751036905a18dbb7455649b146bb3dfb22cf linux-sdm845-6.6.3-r3.tar.gz
|
2024-02-06 13:03:46 +00:00
|
|
|
9393e50336d1b8767c67ffd347000d0191a3fa8645d77b0f8ec222cad837f8f3b2201e6bd1360d62218f5246eaea93f7bf76a7b2a4e0954360fd30291f5bb3a6 config-postmarketos-qcom-sdm845.aarch64
|
2024-02-27 12:56:44 +00:00
|
|
|
e0ae8b9da09cd2552244cfbcd6a63272c766d082306573a679497ab0bd30a44dfa0023503a7628b7ea87238a62da13704de5e2a57952310c7866b770e5c474ad 0001-arm64-dts-qcom-sdm845-xiaomi-polaris-Enable-ath10k-h.patch
|
|
|
|
d7c857500348a1420ccd1a255c667704e54ee88f5c563bcb92885aaa5a9b5dc5a87d12ab782822de523d01c63b277ff60b57cc5307a0663bf42ad7b69da3d1c5 0002-drm-panel-Enable-prepare_prev_first-flag-for-NT35596.patch
|
2021-05-07 09:50:55 +00:00
|
|
|
"
|