2020-02-09 21:13:25 +00:00
|
|
|
pkgname=firmware-sony-leo
|
2023-10-05 18:59:55 +00:00
|
|
|
pkgver=1
|
2020-02-09 21:13:25 +00:00
|
|
|
pkgrel=0
|
2023-10-05 18:59:55 +00:00
|
|
|
pkgdesc="Firmware for Sony Xperia Z3"
|
|
|
|
url="https://github.com/FairBlobs/leo-firmware"
|
2022-11-01 16:27:40 +00:00
|
|
|
arch="armv7"
|
2020-02-09 21:13:25 +00:00
|
|
|
license="proprietary"
|
2023-10-05 18:59:55 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-adsp
|
|
|
|
$pkgname-modem
|
|
|
|
$pkgname-wifi
|
|
|
|
"
|
2021-08-28 19:28:14 +00:00
|
|
|
options="!strip !check !archcheck !tracedeps pmb:cross-native"
|
2023-10-05 18:59:55 +00:00
|
|
|
_commit="8d3b4c091b27ee74e973651f709adbfc5740e9fb"
|
|
|
|
source="https://github.com/FairBlobs/leo-firmware/archive/$_commit/leo-firmware-$_commit.tar.gz"
|
|
|
|
builddir="$srcdir/leo-firmware-$_commit"
|
2020-02-09 21:13:25 +00:00
|
|
|
|
|
|
|
package() {
|
2023-10-05 18:59:55 +00:00
|
|
|
# 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
|
2020-02-09 21:13:25 +00:00
|
|
|
done
|
2023-10-05 18:59:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
modem() {
|
|
|
|
pkgdesc="Sony Xperia Z3 modem firmware"
|
|
|
|
|
|
|
|
cd "$builddir"
|
|
|
|
for _i in modem.* mba.*; do
|
|
|
|
install -Dm644 $_i "$subpkgdir"/lib/firmware/postmarketos/$_i
|
2020-02-09 21:13:25 +00:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2023-10-05 18:59:55 +00:00
|
|
|
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
|
|
|
|
"
|