firmware-fairphone-fp4: package files for hexagonfs (MR 5290)

Package the files to be served by hexagonrpcd.
This commit is contained in:
Luca Weiss 2024-06-28 16:12:45 +02:00 committed by jane400
parent 8ce73a79a1
commit cdb5b2873e
No known key found for this signature in database
GPG key ID: 9901C7B82A702241

View file

@ -1,12 +1,13 @@
pkgname=firmware-fairphone-fp4 pkgname=firmware-fairphone-fp4
pkgver=20240313 pkgver=20240313
pkgrel=0 pkgrel=1
pkgdesc="Firmware for Fairphone 4" pkgdesc="Firmware for Fairphone 4"
subpackages=" subpackages="
$pkgname-adreno $pkgname-adreno
$pkgname-adsp $pkgname-adsp
$pkgname-bluetooth $pkgname-bluetooth
$pkgname-cdsp $pkgname-cdsp
$pkgname-hexagonfs
$pkgname-ipa $pkgname-ipa
$pkgname-modem $pkgname-modem
$pkgname-venus $pkgname-venus
@ -16,8 +17,8 @@ url="https://github.com/FairBlobs/FP4-firmware"
arch="aarch64" arch="aarch64"
license="proprietary" license="proprietary"
makedepends="pil-squasher" makedepends="pil-squasher"
options="!check !strip !archcheck !tracedeps pmb:cross-native" options="!check !strip !archcheck !tracedeps textrels pmb:cross-native"
_commit="d95bd920afa9084cefe0f69be931a5421e544154" _commit="222756885ff5eb24ee89684ef8cfe860a45a54ec"
source="https://github.com/FairBlobs/FP4-firmware/archive/$_commit/FP4-firmware-$_commit.tar.gz" source="https://github.com/FairBlobs/FP4-firmware/archive/$_commit/FP4-firmware-$_commit.tar.gz"
builddir="$srcdir/FP4-firmware-$_commit" builddir="$srcdir/FP4-firmware-$_commit"
@ -68,10 +69,24 @@ cdsp() {
"$subpkgdir/lib/firmware/qcom/sm7225/fairphone4/" "$subpkgdir/lib/firmware/qcom/sm7225/fairphone4/"
} }
hexagonfs() {
pkgdesc="Fairphone 4 hexagonfs files"
mkdir -p "$subpkgdir"/usr/share/qcom/sm7225/Fairphone/
cp -r "$builddir"/hexagonfs/ \
"$subpkgdir"/usr/share/qcom/sm7225/Fairphone/fairphone4
# Remove files that we don't need - for now
rm -r "$subpkgdir"/usr/share/qcom/sm7225/Fairphone/fairphone4/acdb/
rm -r "$subpkgdir"/usr/share/qcom/sm7225/Fairphone/fairphone4/dsp/
find "$subpkgdir/usr/share/qcom/sm7225/Fairphone/fairphone4/" \
-type f -exec chmod 0644 {} \;
}
ipa() { ipa() {
pkgdesc="Fairphone 4 ipa firmware" pkgdesc="Fairphone 4 ipa firmware"
cd "$builddir"
install -Dm644 "$builddir"/lagoon_ipa_fws.mbn \ install -Dm644 "$builddir"/lagoon_ipa_fws.mbn \
"$subpkgdir/lib/firmware/qcom/sm7225/fairphone4/ipa_fws.mbn" "$subpkgdir/lib/firmware/qcom/sm7225/fairphone4/ipa_fws.mbn"
} }
@ -105,5 +120,5 @@ wlan() {
} }
sha512sums=" sha512sums="
3839431922c6250fa76c563183387edbc1370f34d833d5d7c6c08f0d921c0498c93ff376af5d43fecf78d4ac6aff3b90e41345310181826b0a21507dbfba778c FP4-firmware-d95bd920afa9084cefe0f69be931a5421e544154.tar.gz b6836a8770c089615698ec26d397530c75086457c309d7220265da1203f2b06c4021d5a872244ad1e5a4a19d0d8192c13ae2051538e24d1df5292480daa6309d FP4-firmware-222756885ff5eb24ee89684ef8cfe860a45a54ec.tar.gz
" "