main/hexagonfs-firmware-loader: New package

Signed-off-by: Jens Reidel <adrian@travitia.xyz>
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6286
This commit is contained in:
Jens Reidel
2025-03-10 15:08:12 +01:00
committed by Pablo Correa Gómez
parent ffc486b71d
commit 17dd7eb87d
5 changed files with 64 additions and 0 deletions
+53
View File
@@ -0,0 +1,53 @@
pkgname=hexagonfs-firmware-loader
pkgver=1.0.0
pkgrel=0
pkgdesc="Prepare the HexagonFS directory from msm-firmware-loader mounts"
url="https://postmarketos.org/"
subpackages="$pkgname-openrc $pkgname-systemd"
arch="aarch64"
license="MIT"
options="!check"
depends="hexagonrpcd msm-firmware-loader"
source="
hexagonrpcd.confd
https://gitlab.postmarketos.org/Adrian/hexagonfs-firmware-loader/-/archive/$pkgver/hexagonfs-firmware-loader-$pkgver.tar.gz
"
package() {
# Create mountpoint for the HexagonFS files
mkdir -p "$pkgdir/usr/share/qcom"
# Install configs for hexagonrpcd to point it to our mountpoint
install -Dm644 "$srcdir"/hexagonrpcd.confd \
"$pkgdir"/usr/share/hexagonrpcd/hexagonrpcd-adsp-rootpd.conf
install -Dm644 "$srcdir"/hexagonrpcd.confd \
"$pkgdir"/usr/share/hexagonrpcd/hexagonrpcd-adsp-sensorspd.conf
install -Dm644 "$srcdir"/hexagonrpcd.confd \
"$pkgdir"/usr/share/hexagonrpcd/hexagonrpcd-sdsp.conf
install -Dm755 hexagonfs-firmware-loader.sh \
"$pkgdir/usr/sbin/hexagonfs-firmware-loader.sh"
cp -r socinfo "$pkgdir/usr/share/hexagonfs-firmware-loader"
install -Dm755 hexagonfs-firmware-loader.initd \
"$pkgdir/etc/init.d/hexagonfs-firmware-loader"
install -Dm644 hexagonfs-firmware-loader.service \
"$pkgdir/usr/lib/systemd/system/hexagonfs-firmware-loader.service"
}
openrc() {
install="$subpkgname.post-install"
default_openrc
}
systemd() {
install="$subpkgname.post-install $subpkgname.pre-deinstall"
default_systemd
}
sha512sums="
64c50d1e92cc29b3e8c0e5ee0c14603c5d3b6c9f9671038928cb3093a1276e6004452e55c5f7e3793b72bbc0a7dc48063ed29ba779ece2edea5ac743fa1ec473 hexagonrpcd.confd
77c2d49b21afab2ae848d9f32bb88b7bc10c10215ed4f418e8c71ed4e5772ef5a67eded5f420244de66f90b1bb9f53c168395b9587c50a8c1903556acb6b2c7d hexagonfs-firmware-loader-1.0.0.tar.gz
"
@@ -0,0 +1,2 @@
#!/bin/sh
rc-update add hexagonfs-firmware-loader sysinit
@@ -0,0 +1,4 @@
#!/bin/sh
. /usr/lib/systemd/systemd-apk-macros.sh
systemd_service_post_install system hexagonfs-firmware-loader
@@ -0,0 +1,4 @@
#!/bin/sh
. /usr/lib/systemd/systemd-apk-macros.sh
systemd_service_pre_deinstall system hexagonfs-firmware-loader
@@ -0,0 +1 @@
hexagonrpcd_fw_dir="/usr/share/qcom"