From 479978a71658ebe6cf80101f276843870579190d Mon Sep 17 00:00:00 2001 From: Nikita Travkin Date: Wed, 20 Dec 2023 13:11:49 +0500 Subject: [PATCH] soc-qcom-sc7180: Add firmware subpackage for WoA devices (MR 4648) --- device/community/soc-qcom-sc7180/APKBUILD | 17 ++++++++++++++++- ...com-sc7180-nonfree-firmware-woa.post-install | 3 +++ ...com-sc7180-nonfree-firmware-woa.post-upgrade | 1 + 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 device/community/soc-qcom-sc7180/soc-qcom-sc7180-nonfree-firmware-woa.post-install create mode 120000 device/community/soc-qcom-sc7180/soc-qcom-sc7180-nonfree-firmware-woa.post-upgrade diff --git a/device/community/soc-qcom-sc7180/APKBUILD b/device/community/soc-qcom-sc7180/APKBUILD index 97568020d..915f9c8c4 100644 --- a/device/community/soc-qcom-sc7180/APKBUILD +++ b/device/community/soc-qcom-sc7180/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Jenneron pkgname=soc-qcom-sc7180 pkgdesc="Common package for Qualcomm Snapdragon 7cx devices" -pkgver=1.1 +pkgver=2 pkgrel=0 url="https://postmarketos.org" license="BSD-3-Clause" @@ -9,6 +9,7 @@ arch="aarch64" options="!check !archcheck !tracedeps" subpackages=" $pkgname-nonfree-firmware:nonfree_firmware + $pkgname-nonfree-firmware-woa:nonfree_firmware_woa $pkgname-vulkan " source="00-sc7180-nonstrict-iommu.sh" @@ -27,6 +28,20 @@ nonfree_firmware() { mkdir "$subpkgdir" } +nonfree_firmware_woa() { + pkgdesc="Modem, WiFi firmware" + depends=" + $pkgname-nonfree-firmware + pd-mapper + pd-mapper-openrc + tqftpserv + tqftpserv-openrc + " + install="$subpkgname.post-install $subpkgname.post-upgrade" + mkdir "$subpkgdir" +} + + vulkan() { pkgdesc="Vulkan support for freedreno" install_if="$pkgname=$pkgver-r$pkgrel vulkan-loader" diff --git a/device/community/soc-qcom-sc7180/soc-qcom-sc7180-nonfree-firmware-woa.post-install b/device/community/soc-qcom-sc7180/soc-qcom-sc7180-nonfree-firmware-woa.post-install new file mode 100644 index 000000000..70b9e0efe --- /dev/null +++ b/device/community/soc-qcom-sc7180/soc-qcom-sc7180-nonfree-firmware-woa.post-install @@ -0,0 +1,3 @@ +#!/bin/sh +rc-update add tqftpserv boot +rc-update add pd-mapper boot diff --git a/device/community/soc-qcom-sc7180/soc-qcom-sc7180-nonfree-firmware-woa.post-upgrade b/device/community/soc-qcom-sc7180/soc-qcom-sc7180-nonfree-firmware-woa.post-upgrade new file mode 120000 index 000000000..beac84aae --- /dev/null +++ b/device/community/soc-qcom-sc7180/soc-qcom-sc7180-nonfree-firmware-woa.post-upgrade @@ -0,0 +1 @@ +soc-qcom-sc7180-nonfree-firmware-woa.post-install \ No newline at end of file