firmware-google-sargo: add sensor registry (MR 5329)

This commit is contained in:
Richard Acayan 2024-07-04 22:29:48 -04:00 committed by Alexey Minnekhanov
parent e30db78d84
commit 9501e9daa1
No known key found for this signature in database
GPG key ID: 6FE3B029D9D9FAFF

View file

@ -1,12 +1,12 @@
# Maintainer: Richard Acayan <mailingradian@gmail.com>
pkgname=firmware-google-sargo
pkgver=220505.008
pkgrel=4
pkgrel=5
pkgdesc="Proprietary firmware blobs from the Google Pixel 3a factory image"
url="https://github.com/TheMuppets/proprietary_vendor_google_sargo"
arch="aarch64"
license="proprietary"
makedepends="pil-squasher"
makedepends="pil-squasher sscregistrygen"
_commit="c631f0f2aa24ea60cfb505d327cd4ae56ca27f16"
_modemfw_commit="34bbe2c27f35537f13747c9eba67ece6ae141806"
source="
@ -19,6 +19,10 @@ options="!check !archcheck !strip !tracedeps pmb:cross-native"
build() {
pil-squasher a615_zap.mbn proprietary/vendor/firmware/a615_zap.mdt
pil-squasher ipa_fws.mbn proprietary/vendor/firmware/ipa_fws.mdt
# This is an OEM device. The SoC ID for SDM670 is 336.
mkdir sensors-registry
sscregistrygen -p OEM -s 336 proprietary/vendor/etc/sensors/config sensors-registry/
}
package() {
@ -48,6 +52,10 @@ package() {
"$pkgdir"/lib/firmware/qcom/sdm670/sargo/modem.mbn
install -Dm644 "$_modemfw_dir"/modemfw/modemr.jsn \
"$pkgdir"/lib/firmware/qcom/sdm670/sargo/modemr.jsn
mkdir -p "$pkgdir"/usr/share/qcom/sdm670/Google/sargo/sensors/
cp -r "$builddir"/sensors-registry \
"$pkgdir"/usr/share/qcom/sdm670/Google/sargo/sensors/registry
}
sha512sums="