pmaports/device/community/linux-postmarketos-qcom-sdm845/APKBUILD
Joel Selvaraj 86601ff415
community/linux-postmarketos-qcom-sdm845: upgrade to 6.3.2 (MR 4079)
[ci:skip-build]: Already built successfully in CI
2023-05-16 09:19:47 +02:00

60 lines
1.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.3.2
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-6.3.2"
# 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="
a9f1731e944c7a12a8b67b4d5f7ec81301e21eafc510a3b10d526ee47982ef295f2827655d62a5e8dc4b64e1e39dcc1ea6c604624256a693f69abdde3d8857a7 linux-sdm845-6.3.2.tar.gz
82f8e117d818b8e18bd8d9867245a1c1a3793d0ae10437b2756a27e91b4e60e9292242e913b73df4710b3b134be5f1fec80754fd2ff5f5975a9ee2d8287a33aa config-postmarketos-qcom-sdm845.aarch64
"