pmaports/device/testing/linux-postmarketos-qcom-msm8974/APKBUILD
Alexey Minnekhanov ad249d3b87
linux-postmarketos-qcom-msm8974: upgrade to 5.19.17 (MR 3625)
This contains a fix for second panel variant for samsung-hlte.

No more manual changes, .config was regenerated using kconfig migrate.

[ci:skip-build]: already built successfully in CI
2022-11-10 21:41:20 +01:00

69 lines
1.8 KiB
Text

# Maintainer: Alexey Minnekhanov <alexeymin@postmarketos.org>
# Co-Maintainer: Luca Weiss <luca@z3ntu.xyz>
_flavor=postmarketos-qcom-msm8974
_config="config-$_flavor.$CARCH"
pkgname=linux-$_flavor
pkgver=5.19.17
pkgrel=0
_tag="v$pkgver-msm8974"
pkgdesc="Kernel close to mainline with extra patches for Qualcomm MSM8974 devices"
arch="armv7"
_carch="arm"
url="https://kernel.org/"
license="GPL-2.0-only"
options="!strip !check !tracedeps
pmb:cross-native
pmb:kconfigcheck-waydroid
pmb:kconfigcheck-containers
pmb:kconfigcheck-iwd
pmb:kconfigcheck-nftables
pmb:kconfigcheck-zram
"
makedepends="
bash
bison
findutils
flex
gmp-dev
mpc1-dev
mpfr-dev
openssl-dev
perl
postmarketos-installkernel
"
source="
linux-$_tag.tar.gz::https://github.com/msm8974-mainline/linux/archive/refs/tags/$_tag.tar.gz
config-$_flavor.armv7
"
builddir="$srcdir/linux-$pkgver-msm8974"
prepare() {
default_prepare
cp "$srcdir/config-$_flavor.$CARCH" .config
}
build() {
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION=$((pkgrel + 1 ))
}
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"/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="
e3a09f83e16614e3b9e21e69420011ca460d840386bb8af56e261ff54fee379d638cfeb257ee52c6c69b37e294e8e0228ab6729044714f087747cc0c7285fb73 linux-v5.19.17-msm8974.tar.gz
12deaccf2646b322e0dd0ae3446ac2eb9bf5f64a1cb3701c9c6def319c46384988b114eb09446de3538f36dd596549c2486168c69a1cec60756bd6a7df922383 config-postmarketos-qcom-msm8974.armv7
"