pmaports/main/linux-postmarketos-qcom-sdm845/APKBUILD
Caleb Connolly 93f29f1fd9
linux-postmarketos-qcom-sdm845: upgrade to 5.11 (MR 1990)
Update to the 5.11.0 kernel release.

This also fixes the previous build warnings.

[ci:skip-build] Already built fine on CI.

Signed-off-by: Caleb Connolly <caleb@connolly.tech>
2021-02-27 09:48:53 +03:00

55 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.11
pkgrel=1
pkgdesc="Mainline Kernel fork for SDM845 devices"
arch="aarch64"
_carch="arm64"
url="https://gitlab.com/sdm845-mainline/sdm845-linux"
license="GPL-2.0-only"
options="!strip !check !tracedeps pmb:cross-native"
makedepends="bison findutils flex installkernel openssl-dev perl"
_repo="sdm845-linux"
_config="config-$_flavor.$arch"
_commit="ccc42a98e25de2737f1b28edbdc6b0559c322815"
# Source
source="
$_repo-$_commit.tar.gz::https://gitlab.com/sdm845-mainline/$_repo/-/archive/$_commit/$_repo-$_commit.tar.gz
$_config
"
builddir="$srcdir/$_repo-$_commit"
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
make zinstall 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="157df965f733f1e9e6a9305ee9c90f7a550872f5d0acc8ac14439e1b870d9fc6a7be4de27afcc03f27b71f5891a4624c5d0d6c8664b2d045bc61581f4a5ae6b7 sdm845-linux-ccc42a98e25de2737f1b28edbdc6b0559c322815.tar.gz
1a340c3c4d040d4667f551bc11acf779ebb5ede552aec81293b67d3ed6e9b13e97f86b3622975d1b9561ee82199cb2637af1891dd0d64135c04da55b053422f1 config-postmarketos-qcom-sdm845.aarch64"