soc-qcom-msm8998: new aport (MR 3531)

The soc-qcom-sdm845* packages are mostly sufficient, but there are a few
issues that all MSM8998 devices on mainline will face, so include
workarounds for them in a generic package all device pkgs can depend on.
This commit is contained in:
Jami Kettunen 2022-03-30 02:10:49 +03:00 committed by Newbyte
parent 57492bf7da
commit 8ed8d07043
No known key found for this signature in database
GPG key ID: 5873C171C9429CFA
4 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,34 @@
# Maintainer: Jami Kettunen <jami.kettunen@protonmail.com>
pkgname=soc-qcom-msm8998
pkgdesc="Common package for Qualcomm MSM8998 devices"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="BSD-3-Clause"
arch="aarch64"
options="!check !archcheck !tracedeps"
depends="soc-qcom-sdm845"
source="iwd-main.conf"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
package() {
mkdir -p "$pkgdir"
}
nonfree_firmware() {
pkgdesc="Modem, WiFi and GPU Firmware"
depends="
soc-qcom-sdm845-nonfree-firmware
qcom-diag
qcom-diag-openrc
"
install="$subpkgname.post-install $subpkgname.post-upgrade"
mkdir "$subpkgdir"
install -D -m644 "$srcdir"/iwd-main.conf \
"$subpkgdir"/etc/iwd/main.conf
}
sha512sums="
2e3e2be6947e1fb0335ca53ef1f1929b614e3192385f3a42ddb895729793ce185e8c8ad0f16f851ee025c751045cfaf02712b42e89818e37eae532fb59613375 iwd-main.conf
"

View file

@ -0,0 +1,4 @@
# required to avoid modem firmware crash for now
# https://gitlab.com/msm8998-mainline/linux/-/issues/27
[General]
ControlPortOverNL80211=false

View file

@ -0,0 +1,4 @@
#!/bin/sh
# the Wi-Fi firmware will keep crashing if diag-router isn't running
# https://gitlab.com/msm8998-mainline/linux/-/issues/28
rc-update add diag-router boot

View file

@ -0,0 +1 @@
soc-qcom-msm8998-nonfree-firmware.post-install