2022-10-26 21:45:45 +00:00
|
|
|
# Maintainer: Richard Acayan <mailingradian@gmail.com>
|
|
|
|
pkgname=firmware-google-sargo
|
|
|
|
pkgver=220505.008
|
2024-07-05 02:29:48 +00:00
|
|
|
pkgrel=5
|
2022-10-26 21:45:45 +00:00
|
|
|
pkgdesc="Proprietary firmware blobs from the Google Pixel 3a factory image"
|
|
|
|
url="https://github.com/TheMuppets/proprietary_vendor_google_sargo"
|
|
|
|
arch="aarch64"
|
|
|
|
license="proprietary"
|
2024-07-05 02:29:48 +00:00
|
|
|
makedepends="pil-squasher sscregistrygen"
|
2022-10-26 21:45:45 +00:00
|
|
|
_commit="c631f0f2aa24ea60cfb505d327cd4ae56ca27f16"
|
2023-08-07 21:59:07 +00:00
|
|
|
_modemfw_commit="34bbe2c27f35537f13747c9eba67ece6ae141806"
|
|
|
|
source="
|
|
|
|
https://github.com/TheMuppets/proprietary_vendor_google_sargo/archive/$_commit.tar.gz
|
|
|
|
https://gitlab.com/flamingradian/firmware-google-sargo-modem/-/archive/$_modemfw_commit/firmware-google-sargo-modem-$_modemfw_commit.tar.gz
|
|
|
|
"
|
2022-10-26 21:45:45 +00:00
|
|
|
builddir="$srcdir/proprietary_vendor_google_sargo-$_commit"
|
|
|
|
options="!check !archcheck !strip !tracedeps pmb:cross-native"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
pil-squasher a615_zap.mbn proprietary/vendor/firmware/a615_zap.mdt
|
2022-12-07 02:34:32 +00:00
|
|
|
pil-squasher ipa_fws.mbn proprietary/vendor/firmware/ipa_fws.mdt
|
2024-07-05 02:29:48 +00:00
|
|
|
|
|
|
|
# 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/
|
2022-10-26 21:45:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2023-08-07 21:59:07 +00:00
|
|
|
_modemfw_dir="$srcdir"/firmware-google-sargo-modem-"$_modemfw_commit"
|
|
|
|
|
2023-04-07 01:19:34 +00:00
|
|
|
install -Dm644 "$builddir"/a615_zap.mbn \
|
2022-10-26 21:45:45 +00:00
|
|
|
"$pkgdir"/lib/firmware/qcom/sdm670/sargo/a615_zap.mbn
|
2023-04-07 01:19:34 +00:00
|
|
|
install -Dm644 "$builddir"/ipa_fws.mbn \
|
2022-12-07 02:34:32 +00:00
|
|
|
"$pkgdir"/lib/firmware/qcom/sdm670/sargo/ipa_fws.mbn
|
2023-03-01 02:48:52 +00:00
|
|
|
|
2023-04-07 01:19:34 +00:00
|
|
|
install -Dm644 "$builddir"/proprietary/vendor/firmware/adsp.mbn \
|
2023-03-01 02:48:52 +00:00
|
|
|
"$pkgdir"/lib/firmware/qcom/sdm670/sargo/adsp.mbn
|
2023-04-07 01:19:34 +00:00
|
|
|
install -Dm644 "$builddir"/proprietary/vendor/firmware/adspr.jsn \
|
|
|
|
"$pkgdir"/lib/firmware/qcom/sdm670/sargo/adspr.jsn
|
|
|
|
install -Dm644 "$builddir"/proprietary/vendor/firmware/adspua.jsn \
|
|
|
|
"$pkgdir"/lib/firmware/qcom/sdm670/sargo/adspua.jsn
|
|
|
|
install -Dm644 "$builddir"/proprietary/vendor/firmware/modemuw.jsn \
|
2023-08-07 21:59:07 +00:00
|
|
|
"$pkgdir"/lib/firmware/qcom/sdm670/sargo/modemuw.jsn
|
2023-04-07 01:19:34 +00:00
|
|
|
install -Dm644 "$builddir"/proprietary/vendor/firmware/venus.mbn \
|
2022-10-26 21:45:45 +00:00
|
|
|
"$pkgdir"/lib/firmware/qcom/sdm670/sargo/venus.mbn
|
2023-04-07 01:19:34 +00:00
|
|
|
install -Dm644 "$builddir"/proprietary/vendor/firmware/wlanmdsp.mbn \
|
2023-08-07 21:59:07 +00:00
|
|
|
"$pkgdir"/lib/firmware/qcom/sdm670/sargo/wlanmdsp.mbn
|
|
|
|
|
|
|
|
install -Dm644 "$_modemfw_dir"/modemfw/mba.mbn \
|
|
|
|
"$pkgdir"/lib/firmware/qcom/sdm670/sargo/mba.mbn
|
|
|
|
install -Dm644 "$_modemfw_dir"/modemfw/modem.mbn \
|
|
|
|
"$pkgdir"/lib/firmware/qcom/sdm670/sargo/modem.mbn
|
|
|
|
install -Dm644 "$_modemfw_dir"/modemfw/modemr.jsn \
|
|
|
|
"$pkgdir"/lib/firmware/qcom/sdm670/sargo/modemr.jsn
|
2024-07-05 02:29:48 +00:00
|
|
|
|
|
|
|
mkdir -p "$pkgdir"/usr/share/qcom/sdm670/Google/sargo/sensors/
|
|
|
|
cp -r "$builddir"/sensors-registry \
|
|
|
|
"$pkgdir"/usr/share/qcom/sdm670/Google/sargo/sensors/registry
|
2022-10-26 21:45:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
|
|
|
fbbb852405bd521efa4add32136b25f5d07b0671953b05ec66f7b04b6de483269b1e57500f1a723b6b00abb7b9b405e01d14552c686c5c6ffbdb4d0c14f98af0 c631f0f2aa24ea60cfb505d327cd4ae56ca27f16.tar.gz
|
2023-08-07 21:59:07 +00:00
|
|
|
53a71c7d51d6277375076dcf7d89c2189ba67272238a8efa89f712238c2474ee777c3b0d749e8e28eeaa8e6bfbbd6eb56949481029d5ca3505cac321ce8963ef firmware-google-sargo-modem-34bbe2c27f35537f13747c9eba67ece6ae141806.tar.gz
|
2022-10-26 21:45:45 +00:00
|
|
|
"
|