70efe55031
[ci:ignore-count]: Too many packages probably [ci:skip-build]: No way this would finish in time
60 lines
1.8 KiB
Text
60 lines
1.8 KiB
Text
# Maintainer: Caleb Connolly <caleb@connolly.tech>
|
|
# Co-Maintainer: Joel Selvaraj <jo@jsfamily.in>
|
|
# 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=5.19.12
|
|
pkgrel=1
|
|
pkgdesc="Mainline Kernel fork for SDM845 devices"
|
|
arch="aarch64"
|
|
_carch="arm64"
|
|
url="https://gitlab.com/sdm845-mainline/linux"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps
|
|
pmb:cross-native
|
|
pmb:kconfigcheck-community"
|
|
makedepends="bash bison findutils flex installkernel openssl-dev perl"
|
|
|
|
_config="config-$_flavor.$arch"
|
|
_tag="sdm845-5.19.12"
|
|
|
|
# Source
|
|
source="
|
|
linux-$_tag.tar.gz::https://gitlab.com/sdm845-mainline/linux/-/archive/$_tag/linux-$_tag.tar.gz
|
|
$_config
|
|
"
|
|
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() {
|
|
install -Dm644 "$builddir/arch/$_carch/boot/Image.gz" \
|
|
"$pkgdir/boot/vmlinuz"
|
|
|
|
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
|
|
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="
|
|
05e2da7d980a3483a923f4029e706cbc09dc6c31a810b180a6acfeb9c349295e19c32239e4d7c53f6030c60463da099f14603c0cb26adc6a8d4f0a08add0ce40 linux-sdm845-5.19.12.tar.gz
|
|
80ffbedd422bbf3bb4577569479ed7c070dc3fc01c52cc8275e758acf655a0458be7c84da0c2455267dc26c9b0f948343f48283f6f4e9d540eea9d12ba8ed259 config-postmarketos-qcom-sdm845.aarch64
|
|
"
|