pmaports/device/community/linux-postmarketos-qcom-sdm845/APKBUILD
Alexander Martinz 1038e2670a
community/linux-postmarketos-qcom-sdm845: upgrade to 5.17.5 (MR 3118)
For a merge list, please see the merge commits:
  - 5.17.1 - (6151d07534)
  - 5.17.2 - (c8e2541a53)
  - 5.17.3 - (f7006752c1)
  - 5.17.4 - (ee8fb89013)
  - 5.17.5 - (b33c0511c5)

Change-Id: Ic1ec5571bd981aa6c24c619aac24ecd2a941d604
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
[ci:skip-build]: already built successfully in CI
2022-05-06 09:01:18 +02:00

67 lines
1.9 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.17.5
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="!strip !check !tracedeps
pmb:cross-native
pmb:kconfigcheck-nftables
pmb:kconfigcheck-containers
pmb:kconfigcheck-zram
pmb:kconfigcheck-anbox
pmb:kconfigcheck-iwd"
makedepends="bison findutils flex installkernel openssl-dev perl"
_repo="linux"
_config="config-$_flavor.$arch"
_tag="sdm845-5.17.5"
# Source
source="
$_repo-$_tag.tar.gz::https://gitlab.com/sdm845-mainline/$_repo/-/archive/$_tag/$_repo-$_tag.tar.gz
$_config
"
builddir="$srcdir/$_repo-$_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() {
mkdir -p "$pkgdir"/boot
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"/usr/share/dtb
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="
7fdeb034628c2440d015b68dfff7bf491ba170d365b604e59e79885da440a6d37bb1042cb8e35893cd9277c463b60c7a9a1fe8434d24be9cd0e169a34091e559 linux-sdm845-5.17.5.tar.gz
11e1176e01e3199ad6f5da76e8c436c2452a520f354cfc51848faa41521c079d935b70c8284018dfa93602d39ec4a7922c15e81d32e4f38b17971c90fc234a0a config-postmarketos-qcom-sdm845.aarch64
"