firmware-sony-leo: update package for mainline kernel (MR 4452)

Package adsp, modem and wifi firmware for mainline. Compatibility with
downstream firmware is not kept on purpose, if somebody wants this,
please make some subpackage for it!
This commit is contained in:
Luca Weiss 2023-10-05 20:59:55 +02:00 committed by Pablo Correa Gómez
parent 805b7fa0ee
commit 8402710815
No known key found for this signature in database
GPG key ID: 7A342565FF635F79

View file

@ -1,47 +1,53 @@
pkgname=firmware-sony-leo
pkgver=0.1
pkgver=1
pkgrel=0
pkgdesc="Firmware files for Sony Shinano-Leo platform"
url="https://github.com/TheMuppets/proprietary_vendor_sony"
pkgdesc="Firmware for Sony Xperia Z3"
url="https://github.com/FairBlobs/leo-firmware"
arch="armv7"
license="proprietary"
subpackages="
$pkgname-adsp
$pkgname-modem
$pkgname-wifi
"
options="!strip !check !archcheck !tracedeps pmb:cross-native"
# Source
_files_z3="BCM43xx.hcd touch_module_id_0x96.img"
_files_shinano="fw_bcmdhd.bin fw_bcmdhd_apsta.bin"
_files_msm8974="a330_pfp.fw a330_pm4.fw"
_commit="0bf6c0b23b4cfce921135b2a5fec27d821c50964"
_url="https://github.com/TheMuppets/proprietary_vendor_sony/raw/$_commit"
for _i in $_files_z3; do
source="$source $pkgname-$_commit-$_i::$_url/z3/proprietary/vendor/firmware/$_i"
done
for _i in $_files_msm8974; do
source="$source $pkgname-$_commit-$_i::$_url/msm8974-common/proprietary/vendor/firmware/$_i"
done
for _i in $_files_shinano; do
source="$source $pkgname-$_commit-$_i::$_url/shinano-common/proprietary/vendor/firmware/$_i"
done
_commit="8d3b4c091b27ee74e973651f709adbfc5740e9fb"
source="https://github.com/FairBlobs/leo-firmware/archive/$_commit/leo-firmware-$_commit.tar.gz"
builddir="$srcdir/leo-firmware-$_commit"
package() {
cd "$srcdir"
for _i in $_files_z3; do
install -D -m644 "$pkgname-$_commit-$_i" \
"$pkgdir/lib/firmware/postmarketos/$_i"
done
for _i in $_files_msm8974; do
install -D -m644 "$pkgname-$_commit-$_i" \
"$pkgdir/lib/firmware/postmarketos/$_i"
done
for _i in $_files_shinano; do
install -D -m644 "$pkgname-$_commit-$_i" \
"$pkgdir/lib/firmware/postmarketos/$_i"
# parent package is empty
mkdir -p "$pkgdir"
}
adsp() {
pkgdesc="Sony Xperia Z3 adsp firmware"
cd "$builddir"
for _i in adsp.*; do
install -Dm644 $_i "$subpkgdir"/lib/firmware/postmarketos/$_i
done
}
sha512sums="648a6d7fdde54524a678c3b7147093e76ac564e0adf5e14e27c432e359792c70ba54da44148f5f3f52cfe4be09231c964090eeedda6211bc71f398de16212b40 firmware-sony-leo-0bf6c0b23b4cfce921135b2a5fec27d821c50964-BCM43xx.hcd
678b167d1bd15360d3b3cf01f2a6408a7a5f283c383538b1824b852ece9a61f70e729105320acef65908498c2db81d3a4f95b2f77d703432985541b27dd20779 firmware-sony-leo-0bf6c0b23b4cfce921135b2a5fec27d821c50964-touch_module_id_0x96.img
a642584990333d62ba6a985eeaddc6898c37a8e80aabb61121f93a90d5076861eb698422101e7b00706b7d3dfc00f9f358ea5e44a70fda7369931eb58b455931 firmware-sony-leo-0bf6c0b23b4cfce921135b2a5fec27d821c50964-a330_pfp.fw
999e3e0777b8dffc0e0d20b214c8217dab577a31753b6a29af2fae57293693196e992a905265e35a586a7978c04547aa8c88496dbe6f836b74ed39026eaa5f05 firmware-sony-leo-0bf6c0b23b4cfce921135b2a5fec27d821c50964-a330_pm4.fw
066e7a72d556356a10bb367afe4dc984337291b2d7e00ed0d6594092fa2b97e2b0246fa12d37b47bdbd1bbe0f9619a4b9575fc5891f79d4768d91e13a9e51ad5 firmware-sony-leo-0bf6c0b23b4cfce921135b2a5fec27d821c50964-fw_bcmdhd.bin
29031ec0802d90d86005029ca7e645e2898c7e0d34e6d6251215cdfee80c0253ead140ae973a765106c5b2148a11a3dabbf38479a24539bb16320b5cc0062f2c firmware-sony-leo-0bf6c0b23b4cfce921135b2a5fec27d821c50964-fw_bcmdhd_apsta.bin"
modem() {
pkgdesc="Sony Xperia Z3 modem firmware"
cd "$builddir"
for _i in modem.* mba.*; do
install -Dm644 $_i "$subpkgdir"/lib/firmware/postmarketos/$_i
done
}
wifi() {
pkgdesc="Sony Xperia Z3 wifi firmware"
cd "$builddir"
install -Dm644 brcmfmac4339-sdio.sony,xperia-leo.bin -t \
"$subpkgdir"/lib/firmware/brcm/
install -Dm644 brcmfmac4339-sdio.txt -t \
"$subpkgdir"/lib/firmware/brcm/
}
sha512sums="
ef6fc9b1dee7ab38c5fcfe1386d670ddeee44a5647f01445acf3fb3d71ef1952354b220d90f09b82524b39b48420a68fe6e7b90937d52d9d18eca5403ba585e5 leo-firmware-8d3b4c091b27ee74e973651f709adbfc5740e9fb.tar.gz
"