2020-05-27 00:15:46 +00:00
|
|
|
# Maintainer: Caleb Connolly (kalube) <caleb@connolly.tech>
|
2022-10-08 19:58:21 +00:00
|
|
|
# Co-Maintainer: Joel Selvaraj <joelselvaraj.oss@gmail.com>
|
2020-05-27 00:15:46 +00:00
|
|
|
pkgname=soc-qcom-sdm845
|
|
|
|
pkgdesc="Common package for Qualcomm SDM845 devices"
|
2024-07-01 22:43:56 +00:00
|
|
|
pkgver=22
|
2024-07-26 21:54:04 +00:00
|
|
|
pkgrel=1
|
2020-05-27 00:15:46 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="BSD-3-Clause"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck !tracedeps"
|
2021-07-24 02:58:23 +00:00
|
|
|
depends="
|
|
|
|
swclock-offset
|
2023-06-28 14:40:32 +00:00
|
|
|
kmod
|
2021-07-24 02:58:23 +00:00
|
|
|
"
|
2022-08-15 14:39:41 +00:00
|
|
|
replaces="upower"
|
2021-02-18 19:40:58 +00:00
|
|
|
subpackages="
|
2023-04-29 22:09:49 +00:00
|
|
|
$pkgname-modem
|
2021-02-18 19:40:58 +00:00
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
2023-06-01 09:39:29 +00:00
|
|
|
$pkgname-pulseaudio
|
2022-06-04 15:45:55 +00:00
|
|
|
$pkgname-qbootctl
|
2022-08-15 13:26:47 +00:00
|
|
|
$pkgname-ucm
|
2022-10-04 22:14:34 +00:00
|
|
|
$pkgname-vulkan
|
2021-02-18 19:40:58 +00:00
|
|
|
"
|
|
|
|
|
2024-06-22 07:35:22 +00:00
|
|
|
_ucm_commit="aaa7889f7a6de640b4d78300e118457335ad16c0"
|
2021-02-18 19:40:58 +00:00
|
|
|
source="
|
2023-06-28 14:40:32 +00:00
|
|
|
10-initramfs-sdm845.files
|
2024-07-01 22:43:56 +00:00
|
|
|
51-qcom-sdm845.conf
|
2021-02-18 19:40:58 +00:00
|
|
|
90-feedbackd-pmi8998.rules
|
2022-07-16 09:46:20 +00:00
|
|
|
UPower.conf
|
2023-06-01 09:39:29 +00:00
|
|
|
alsa-ucm-conf-$_ucm_commit.tar.gz::https://gitlab.com/sdm845-mainline/alsa-ucm-conf/-/archive/$_ucm_commit/alsa-ucm-conf-$_ucm_commit.tar.gz
|
2023-02-04 07:21:06 +00:00
|
|
|
call_audio_idle_suspend_workaround.confd
|
2023-06-01 09:39:29 +00:00
|
|
|
call_audio_idle_suspend_workaround.initd
|
|
|
|
call_audio_idle_suspend_workaround.sh
|
|
|
|
modemmanager.conf
|
2021-02-18 19:40:58 +00:00
|
|
|
"
|
2020-05-27 00:15:46 +00:00
|
|
|
|
|
|
|
package() {
|
|
|
|
mkdir -p "$pkgdir"
|
2021-03-02 00:59:22 +00:00
|
|
|
install -Dm644 "$srcdir"/90-feedbackd-pmi8998.rules \
|
|
|
|
"$pkgdir"/usr/lib/udev/rules.d/90-feedbackd-pmi8998.rules
|
2022-08-15 14:39:41 +00:00
|
|
|
|
|
|
|
# Shutdown when battery is critical instead of sleep
|
|
|
|
install -Dm644 "$srcdir"/UPower.conf \
|
|
|
|
"$pkgdir"/etc/UPower/UPower.conf
|
2023-06-28 14:40:32 +00:00
|
|
|
|
|
|
|
install -Dm644 "$srcdir"/10-initramfs-sdm845.files \
|
|
|
|
-t "$pkgdir"/usr/share/mkinitfs/files/
|
2024-05-01 22:36:21 +00:00
|
|
|
|
2024-07-01 22:43:56 +00:00
|
|
|
install -Dm644 "$srcdir"/51-qcom-sdm845.conf \
|
|
|
|
-t "$pkgdir"/usr/share/wireplumber/wireplumber.conf.d
|
2020-05-27 00:15:46 +00:00
|
|
|
}
|
|
|
|
|
2023-04-29 22:09:49 +00:00
|
|
|
modem() {
|
|
|
|
pkgdesc="Modem services and configuration"
|
2022-10-09 02:03:01 +00:00
|
|
|
depends="
|
2023-04-29 22:09:49 +00:00
|
|
|
q6voiced
|
|
|
|
q6voiced-openrc
|
|
|
|
msm-modem-uim-selection
|
2024-07-26 21:54:04 +00:00
|
|
|
81voltd
|
2023-04-29 22:09:49 +00:00
|
|
|
"
|
|
|
|
|
2022-03-17 07:56:22 +00:00
|
|
|
install="$subpkgname.post-install $subpkgname.post-upgrade"
|
2020-05-27 00:15:46 +00:00
|
|
|
mkdir "$subpkgdir"
|
2022-03-17 07:56:22 +00:00
|
|
|
|
|
|
|
install -Dm644 "$srcdir"/modemmanager.conf \
|
|
|
|
"$subpkgdir"/etc/conf.d/modemmanager
|
2020-06-21 13:07:32 +00:00
|
|
|
}
|
2021-03-02 00:59:22 +00:00
|
|
|
|
2023-04-29 22:09:49 +00:00
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Modem, WiFi and GPU Firmware"
|
|
|
|
depends="
|
|
|
|
pd-mapper
|
|
|
|
pd-mapper-openrc
|
|
|
|
tqftpserv
|
|
|
|
tqftpserv-openrc
|
|
|
|
msm-modem
|
|
|
|
bootmac
|
|
|
|
alsa-utils
|
|
|
|
"
|
|
|
|
|
|
|
|
install="$subpkgname.post-install $subpkgname.post-upgrade"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2021-02-18 19:40:58 +00:00
|
|
|
ucm() {
|
|
|
|
provides="alsa-ucm-conf"
|
2022-10-30 13:02:00 +00:00
|
|
|
provider_priority=1
|
2021-02-18 19:40:58 +00:00
|
|
|
|
|
|
|
# install audio config files
|
|
|
|
mkdir -p "$subpkgdir"/usr/share/alsa/ucm2
|
|
|
|
cp -r "$srcdir/alsa-ucm-conf-$_ucm_commit"/ucm2 "$subpkgdir"/usr/share/alsa/
|
|
|
|
}
|
|
|
|
|
2022-06-04 15:45:55 +00:00
|
|
|
qbootctl() {
|
|
|
|
pkgdesc="Enable qbootctl mark-boot-successful service"
|
|
|
|
depends="qbootctl"
|
|
|
|
install="$subpkgname.post-install $subpkgname.post-upgrade"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2022-10-04 22:14:34 +00:00
|
|
|
vulkan() {
|
|
|
|
pkgdesc="Vulkan support for freedreno"
|
|
|
|
install_if="$pkgname vulkan-loader"
|
2022-10-05 12:38:20 +00:00
|
|
|
depends="mesa-vulkan-freedreno"
|
2022-10-04 22:14:34 +00:00
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2023-06-01 09:39:29 +00:00
|
|
|
pulseaudio() {
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel pulseaudio"
|
|
|
|
replaces="$pkgname" # To migrate from workaround being in main package
|
2023-08-08 08:42:44 +00:00
|
|
|
install="$subpkgname.post-install $subpkgname.post-upgrade"
|
2023-06-01 09:39:29 +00:00
|
|
|
|
|
|
|
# Call Audio idle suspend workaround code
|
|
|
|
install -Dm755 "$srcdir"/call_audio_idle_suspend_workaround.sh \
|
|
|
|
"$subpkgdir"/usr/sbin/call_audio_idle_suspend_workaround
|
|
|
|
|
|
|
|
# Call Audio idle suspend workaround init script
|
|
|
|
install -Dm755 "$srcdir"/call_audio_idle_suspend_workaround.initd \
|
|
|
|
"$subpkgdir"/etc/init.d/call_audio_idle_suspend_workaround
|
|
|
|
|
|
|
|
install -Dm644 "$srcdir"/call_audio_idle_suspend_workaround.confd \
|
|
|
|
"$subpkgdir"/etc/conf.d/call_audio_idle_suspend_workaround
|
|
|
|
}
|
|
|
|
|
2021-05-28 15:27:54 +00:00
|
|
|
sha512sums="
|
2023-06-28 14:40:32 +00:00
|
|
|
56845726c5e7b685953f96c381404181ad9b70ea7dbfe5a3d963fb6f15821addaead43a65c9b140cb938c2d45173cfb5421816bd36024fd7e1b8555e0b32622f 10-initramfs-sdm845.files
|
2024-07-01 22:43:56 +00:00
|
|
|
28c14f47eaedec577d152001c51753537c98f267ac4a0acf78a304efebe5f6a1b4dc6d501497da9a0a925806a1d9c80b25e001cf9b1eb21efa22cd6a41ff753b 51-qcom-sdm845.conf
|
2021-07-24 02:58:23 +00:00
|
|
|
4f2c22a3a3fc7d380e200ad977578107d81f0e7ade7918e03bdb15b60a564e8db5f47e13cce22f636d38fd3722696bb46076b8872dae0ca2d8a3838522a1f025 90-feedbackd-pmi8998.rules
|
2022-07-16 09:46:20 +00:00
|
|
|
9d455b56558d453d501a1ad869ffa79f9952ed43485a9847d506db6a78bfcd9f9c9d855660ee1d368eb74f4429385ec166addc30d802261c75562e785fe84c52 UPower.conf
|
2024-06-22 07:35:22 +00:00
|
|
|
62e85ff4d983bd58078633088a6506b8ed9dab88b13adb1af72abd324386a3614ad4af6b3a9594c5a1d1fbdb1891ad906d360764081c83318e9970c94838dfb8 alsa-ucm-conf-aaa7889f7a6de640b4d78300e118457335ad16c0.tar.gz
|
2023-02-04 07:21:06 +00:00
|
|
|
6fb4c0bd8b7ed534d855a6732ccff783960e3cfa0e0cc7effcbb93afa00798dec15361a37a3200081bc114c8d266b7a0851cc4e819ad36eabdb47a50c72620d9 call_audio_idle_suspend_workaround.confd
|
2023-06-01 09:39:29 +00:00
|
|
|
5a58475b6e2ee1d655f3f23d8dc19e1cb2f32f1dfff3b9a9337d9c5baad1ec24bfaec0fb9cc03f00e5a291bee27c6b8bffbc65157e2bee5d65ef6d1adcb0910b call_audio_idle_suspend_workaround.initd
|
2024-07-01 22:43:56 +00:00
|
|
|
6da0a9209f114354aa2aa1185ec3896a8e0bb1bfce0dc3fc4c0de339cf1389feaa2d724e733c251ff032a5e86d37d9549e94f8f7c7a5accfedbd8a4d6316bbfd call_audio_idle_suspend_workaround.sh
|
2023-06-01 09:39:29 +00:00
|
|
|
e33f41360ccc4900bb76a26cc7b46bde1fb90facdf45c4fbcebc80499386939948401cacd6df9f779eafab10f4ee77ee1fef3e7bd06f483f8c2a4a644c84f327 modemmanager.conf
|
2021-05-28 15:27:54 +00:00
|
|
|
"
|