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-06-27 20:57:36 +00:00
|
|
|
pkgver=6.4.0
|
2023-08-22 03:54:20 +00:00
|
|
|
pkgrel=1
|
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-06-27 20:57:36 +00:00
|
|
|
_tag="sdm845-6.4-r1"
|
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
|
|
|
|
"
|
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() {
|
2021-07-19 22:21:08 +00:00
|
|
|
install -Dm644 "$builddir/arch/$_carch/boot/Image.gz" \
|
2021-09-08 20:32:39 +00:00
|
|
|
"$pkgdir/boot/vmlinuz"
|
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 \
|
2022-07-30 18:11:01 +00:00
|
|
|
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
|
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-06-27 20:57:36 +00:00
|
|
|
001c80f8f8e574047c1e34f397822a51259bd0cf729bcc2642b421789fdfde546670bcd3e1426a5ba82724e0e24458bcb7a902dc709afd37d7d2c7c53f23bc7a linux-sdm845-6.4-r1.tar.gz
|
2023-08-22 03:54:20 +00:00
|
|
|
3ac7129b965d8d2ca3126d6cf8960febb175f36fda5a3578be8bd35578bed1dc157c2c64af94d4cef882ee56de946155e3a74f0d7d5a3493f770da30c731b017 config-postmarketos-qcom-sdm845.aarch64
|
2021-05-07 09:50:55 +00:00
|
|
|
"
|