2021-05-08 13:40:46 +00:00
|
|
|
pkgname=firmware-fairphone-fp3
|
2021-10-25 16:15:58 +00:00
|
|
|
pkgver=20210805
|
|
|
|
_commit="ee529820bb874ab1b52873f0b144c3786f01ee4c"
|
2021-05-08 13:40:46 +00:00
|
|
|
pkgrel=0
|
|
|
|
pkgdesc="Firmware for Fairphone 3"
|
2021-10-25 16:15:58 +00:00
|
|
|
url="https://github.com/FairBlobs/FP3-firmware"
|
2021-05-08 13:40:46 +00:00
|
|
|
arch="aarch64"
|
|
|
|
license="proprietary"
|
2021-09-27 09:10:49 +00:00
|
|
|
subpackages="
|
2021-10-25 16:15:58 +00:00
|
|
|
$pkgname-adreno
|
2021-09-27 09:10:49 +00:00
|
|
|
$pkgname-adsp
|
|
|
|
$pkgname-modem
|
2021-10-25 16:15:58 +00:00
|
|
|
$pkgname-venus
|
2021-09-27 09:10:49 +00:00
|
|
|
$pkgname-wcnss
|
2021-10-25 16:15:58 +00:00
|
|
|
"
|
2021-08-28 19:28:14 +00:00
|
|
|
options="!check !strip !archcheck !tracedeps pmb:cross-native"
|
2021-10-25 16:15:58 +00:00
|
|
|
source="https://github.com/FairBlobs/FP3-firmware/archive/$_commit/FP3-firmware-$_commit.tar.gz"
|
|
|
|
builddir="$srcdir/FP3-firmware-$_commit"
|
2021-05-08 13:40:46 +00:00
|
|
|
_fwdir="/lib/firmware/postmarketos"
|
|
|
|
|
|
|
|
package() {
|
|
|
|
mkdir -p "$pkgdir"
|
|
|
|
}
|
|
|
|
|
2021-10-25 16:15:58 +00:00
|
|
|
adreno() {
|
|
|
|
pkgdesc="Fairphone 3 firmware for GPU"
|
|
|
|
|
|
|
|
install -Dm644 "$builddir"/a506_zap.mdt -t \
|
|
|
|
"$subpkgdir/$_fwdir"
|
|
|
|
install -Dm644 "$builddir"/a506_zap.b* -t \
|
|
|
|
"$subpkgdir/$_fwdir"
|
|
|
|
install -Dm644 "$builddir"/a530_pm4.fw -t \
|
|
|
|
"$subpkgdir/$_fwdir"
|
|
|
|
install -Dm644 "$builddir"/a530_pfp.fw -t \
|
|
|
|
"$subpkgdir/$_fwdir"
|
|
|
|
}
|
|
|
|
|
2021-09-27 09:10:49 +00:00
|
|
|
adsp() {
|
|
|
|
pkgdesc="Fairphone 3 firmware for the ADSP"
|
|
|
|
|
|
|
|
install -Dm644 "$builddir"/adsp.* -t \
|
|
|
|
"$subpkgdir/$_fwdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
modem() {
|
|
|
|
pkgdesc="Fairphone 3 firmware for the modem"
|
|
|
|
|
|
|
|
install -Dm644 "$builddir"/mba.mbn -t \
|
|
|
|
"$subpkgdir/$_fwdir"
|
|
|
|
install -Dm644 "$builddir"/modem.* -t \
|
|
|
|
"$subpkgdir/$_fwdir"
|
|
|
|
}
|
|
|
|
|
2021-10-25 16:15:58 +00:00
|
|
|
venus() {
|
|
|
|
pkgdesc="Fairphone 3 firmware for venus"
|
|
|
|
|
|
|
|
install -Dm644 "$builddir"/venus.* -t \
|
|
|
|
"$subpkgdir/$_fwdir"
|
|
|
|
}
|
|
|
|
|
2021-05-08 13:40:46 +00:00
|
|
|
wcnss() {
|
|
|
|
pkgdesc="Fairphone 3 firmware for the Qualcomm Wireless Connectivity Subsystem (WCNSS)"
|
|
|
|
|
|
|
|
install -Dm644 "$builddir"/wcnss.* -t \
|
|
|
|
"$subpkgdir/$_fwdir"
|
2021-10-25 16:15:58 +00:00
|
|
|
install -Dm644 "$builddir"/wlan/prima/* -t \
|
2021-05-08 13:40:46 +00:00
|
|
|
"$subpkgdir/$_fwdir"/wlan/prima
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2021-10-25 16:15:58 +00:00
|
|
|
efa827787814ff4a59a0a61ca66410e46ce0add29b1451b4962b2d8af1d52b7035a0550b188fd442358702252964e4b64b16f836c5dcb1f748102cd0550aff7b FP3-firmware-ee529820bb874ab1b52873f0b144c3786f01ee4c.tar.gz
|
2021-05-08 13:40:46 +00:00
|
|
|
"
|