From d5b425cbd3d5fc4187b4045ef27371ad2b2a0016 Mon Sep 17 00:00:00 2001 From: Alexander Martinz Date: Tue, 5 Mar 2024 18:17:00 +0100 Subject: [PATCH] soc-qcom-sc7280: new aport (MR 4891) Signed-off-by: Alexander Martinz --- device/testing/soc-qcom-sc7280/APKBUILD | 47 +++++++++++++++++++ .../soc-qcom-sc7280-qbootctl.post-install | 2 + .../soc-qcom-sc7280-qbootctl.post-upgrade | 1 + .../soc-qcom-sc7280.post-install | 3 ++ .../soc-qcom-sc7280.post-upgrade | 1 + 5 files changed, 54 insertions(+) create mode 100644 device/testing/soc-qcom-sc7280/APKBUILD create mode 100644 device/testing/soc-qcom-sc7280/soc-qcom-sc7280-qbootctl.post-install create mode 120000 device/testing/soc-qcom-sc7280/soc-qcom-sc7280-qbootctl.post-upgrade create mode 100644 device/testing/soc-qcom-sc7280/soc-qcom-sc7280.post-install create mode 120000 device/testing/soc-qcom-sc7280/soc-qcom-sc7280.post-upgrade diff --git a/device/testing/soc-qcom-sc7280/APKBUILD b/device/testing/soc-qcom-sc7280/APKBUILD new file mode 100644 index 000000000..9e7071690 --- /dev/null +++ b/device/testing/soc-qcom-sc7280/APKBUILD @@ -0,0 +1,47 @@ +# Maintainer: Luca Weiss +pkgname=soc-qcom-sc7280 +pkgdesc="Common package for Qualcomm SC7280/SM7325/QCM6490 devices" +pkgver=1 +pkgrel=0 +url="https://postmarketos.org" +license="BSD-3-Clause" +arch="aarch64" +options="!check !archcheck !tracedeps" +depends=" + bootmac + linux-firmware-ath11k + msm-modem + msm-modem-uim-selection + pd-mapper + pd-mapper-openrc + swclock-offset + tqftpserv + tqftpserv-openrc +" +install="$pkgname.post-install $pkgname.post-upgrade" +subpackages=" + $pkgname-qbootctl + $pkgname-vulkan +" + +package() { + mkdir -p "$pkgdir" +} + +qbootctl() { + pkgdesc="Enable qbootctl mark-boot-successful service" + depends=" + qbootctl + qbootctl-openrc + " + install="$subpkgname.post-install $subpkgname.post-upgrade" + mkdir "$subpkgdir" +} + +vulkan() { + pkgdesc="Vulkan support for freedreno" + install_if="$pkgname vulkan-loader" + depends="mesa-vulkan-freedreno" + mkdir "$subpkgdir" +} + diff --git a/device/testing/soc-qcom-sc7280/soc-qcom-sc7280-qbootctl.post-install b/device/testing/soc-qcom-sc7280/soc-qcom-sc7280-qbootctl.post-install new file mode 100644 index 000000000..1ce77a594 --- /dev/null +++ b/device/testing/soc-qcom-sc7280/soc-qcom-sc7280-qbootctl.post-install @@ -0,0 +1,2 @@ +#!/bin/sh +rc-update add qbootctl default diff --git a/device/testing/soc-qcom-sc7280/soc-qcom-sc7280-qbootctl.post-upgrade b/device/testing/soc-qcom-sc7280/soc-qcom-sc7280-qbootctl.post-upgrade new file mode 120000 index 000000000..eaac67d40 --- /dev/null +++ b/device/testing/soc-qcom-sc7280/soc-qcom-sc7280-qbootctl.post-upgrade @@ -0,0 +1 @@ +soc-qcom-sc7280-qbootctl.post-install \ No newline at end of file diff --git a/device/testing/soc-qcom-sc7280/soc-qcom-sc7280.post-install b/device/testing/soc-qcom-sc7280/soc-qcom-sc7280.post-install new file mode 100644 index 000000000..70b9e0efe --- /dev/null +++ b/device/testing/soc-qcom-sc7280/soc-qcom-sc7280.post-install @@ -0,0 +1,3 @@ +#!/bin/sh +rc-update add tqftpserv boot +rc-update add pd-mapper boot diff --git a/device/testing/soc-qcom-sc7280/soc-qcom-sc7280.post-upgrade b/device/testing/soc-qcom-sc7280/soc-qcom-sc7280.post-upgrade new file mode 120000 index 000000000..a4e3a8489 --- /dev/null +++ b/device/testing/soc-qcom-sc7280/soc-qcom-sc7280.post-upgrade @@ -0,0 +1 @@ +soc-qcom-sc7280.post-install \ No newline at end of file