linux-postmarketos-qcom-sdm660: upgrade to 5.19 (MR 3342)

Upgrade to fresh Linux release.

Enable more features in kernel from pmbootstrap kconfig check:
anbox, containers, iwd, nftables, zram.

Disable CONFIG_REGULATOR_DEBUG to reduce dmesg spam.

DRM and PANEL_SIMPLE are now built-in (DRM_MSM is still "m").

Switch to framebuffer from SIMPLEFB to tinydrm (SIMPLEDRM=y).

Switch APKBUILD to use "make zinstall" approach.

(Device packages might need small adjustments to initfs modules list.)
This commit is contained in:
Alexey Min 2022-08-04 07:03:43 +03:00 committed by Newbyte
parent f5937947aa
commit 4a685bd493
No known key found for this signature in database
GPG key ID: 5873C171C9429CFA
2 changed files with 823 additions and 376 deletions

View file

@ -1,9 +1,9 @@
# Maintainer: Alexey Min <alexey.min@gmail.com>
# Maintainer: Alexey Minnekhanov <alexeymin@postmarketos.org>
# Kernel config based on: arch/arm64/configs/defconfig
_flavor="postmarketos-qcom-sdm660"
pkgname=linux-$_flavor
pkgver=5.17.0
pkgver=5.19.0
pkgrel=0
pkgdesc="Close to mainline linux kernel for Qualcomm Snapdragon 660 SoC"
arch="aarch64"
@ -11,11 +11,23 @@ url="https://kernel.org/"
license="GPL-2.0-only"
options="!strip !check !tracedeps
pmb:cross-native
pmb:kconfigcheck-anbox
pmb:kconfigcheck-containers
pmb:kconfigcheck-iwd
pmb:kconfigcheck-nftables
pmb:kconfigcheck-zram
"
makedepends="
bash
bison
findutils
flex
openssl-dev
perl
postmarketos-installkernel
"
makedepends="bison findutils flex installkernel openssl-dev perl"
_tag="v5.17.0-sdm660"
_tag="v5.19.0-sdm660"
source="
linux-$_tag.tar.gz::https://github.com/sdm660-mainline/linux/archive/refs/tags/$_tag.tar.gz
@ -26,7 +38,7 @@ _carch="arm64"
# for some reason, the directory inside .tar.gz does not match tag name: leading
# "v" is missing, so we can't use $_tag here
builddir="$srcdir/linux-5.17.0-sdm660"
builddir="$srcdir/linux-5.19.0-sdm660"
prepare() {
default_prepare
@ -40,21 +52,21 @@ build() {
}
package() {
# bootloader requires compressed kernel
install -Dm644 "$builddir/arch/$_carch/boot/Image.gz" \
"$pkgdir/boot/vmlinuz"
mkdir -p "$pkgdir"/boot
install -D "$builddir/include/config/kernel.release" \
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
make modules_install dtbs_install \
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="
55a43cf8db2089b9e72796d176bf03805b38ad6433ea1a6db3350da4f829f380f4c6ec5ed2bb189867c44b9369b9b74d53039a887a5ce23a9f7761b057c8e783 linux-v5.17.0-sdm660.tar.gz
c1724eeb6e17a02c5eeb1eb76d1ed27bc24063a8c397fbf3415e0fb696152a98733711031e266cc6e54d8a2bf8bfdab34e5fce9584429ebab18fc4016bf6e041 config-postmarketos-qcom-sdm660.aarch64
9fe83da6f1b19f635a3a7ff4eada2c9053656a1262ac4eeae4b6f412fe60bde876d836aaaf2278a32fb9735fd29f6f286f703593b6a9449d4aa16a93d321b59c linux-v5.19.0-sdm660.tar.gz
c3a16885e4ed0a2533af50b14fd0d1627d43071561198b73b0e162ced09f6c2d541accfb031e03573a476984b2baf3b62cad9ba19e7d03cb18d14e0dc8d6aa80 config-postmarketos-qcom-sdm660.aarch64
"