diff --git a/device/testing/soc-qcom-sc7180/APKBUILD b/device/testing/soc-qcom-sc7180/APKBUILD new file mode 100644 index 000000000..fe5b437e4 --- /dev/null +++ b/device/testing/soc-qcom-sc7180/APKBUILD @@ -0,0 +1,32 @@ +# Maintainer: Jenneron +pkgname=soc-qcom-sc7180 +pkgdesc="Common package for Qualcomm Snapdragon 7cx devices" +pkgver=1 +pkgrel=0 +url="https://postmarketos.org" +license="BSD-3-Clause" +arch="aarch64" +options="!check !archcheck !tracedeps" +subpackages=" + $pkgname-nonfree-firmware:nonfree_firmware + $pkgname-vulkan +" + +package() { + mkdir -p "$pkgdir" +} + +nonfree_firmware() { + pkgdesc="Modem, WiFi firmware" + depends="rmtfs rmtfs-openrc" + install="$subpkgname.post-install $subpkgname.post-upgrade" + mkdir "$subpkgdir" +} + +vulkan() { + pkgdesc="Vulkan support for freedreno" + install_if="$pkgname=$pkgver-r$pkgrel vulkan-loader" + depends="mesa-vulkan-freedreno" + mkdir "$subpkgdir" +} + diff --git a/device/testing/soc-qcom-sc7180/soc-qcom-sc7180-nonfree-firmware.post-install b/device/testing/soc-qcom-sc7180/soc-qcom-sc7180-nonfree-firmware.post-install new file mode 100644 index 000000000..9623aa5ce --- /dev/null +++ b/device/testing/soc-qcom-sc7180/soc-qcom-sc7180-nonfree-firmware.post-install @@ -0,0 +1,2 @@ +#!/bin/sh +rc-update add rmtfs boot diff --git a/device/testing/soc-qcom-sc7180/soc-qcom-sc7180-nonfree-firmware.post-upgrade b/device/testing/soc-qcom-sc7180/soc-qcom-sc7180-nonfree-firmware.post-upgrade new file mode 120000 index 000000000..7b73e0abc --- /dev/null +++ b/device/testing/soc-qcom-sc7180/soc-qcom-sc7180-nonfree-firmware.post-upgrade @@ -0,0 +1 @@ +soc-qcom-sc7180-nonfree-firmware.post-install \ No newline at end of file