2020-04-08 10:32:40 +00:00
|
|
|
pkgname=firmware-bq-picmt
|
2020-04-15 07:57:10 +00:00
|
|
|
pkgver=1
|
2020-04-08 10:32:40 +00:00
|
|
|
pkgrel=0
|
2020-04-15 07:57:10 +00:00
|
|
|
pkgdesc="Firmware for BQ Aquaris X5"
|
2020-04-08 10:32:40 +00:00
|
|
|
url="https://github.com/JonnyMe/picmt-firmware"
|
2020-04-15 07:57:10 +00:00
|
|
|
subpackages="$pkgname-modem $pkgname-venus $pkgname-wcnss"
|
|
|
|
arch="aarch64 armv7"
|
2020-04-08 10:32:40 +00:00
|
|
|
license="proprietary"
|
|
|
|
options="!check !strip !archcheck"
|
|
|
|
source="https://github.com/JonnyMe/picmt-firmware/raw/master/picmt_firmware_files.tar.xz"
|
|
|
|
|
|
|
|
_fwdir="/lib/firmware/postmarketos"
|
|
|
|
|
|
|
|
package() {
|
2020-04-15 07:57:10 +00:00
|
|
|
# parent package is empty
|
2020-04-08 10:32:40 +00:00
|
|
|
mkdir -p "$pkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
modem() {
|
2020-04-15 07:57:10 +00:00
|
|
|
pkgdesc="BQ Aquaris X5 modem firmware"
|
2020-04-08 10:32:40 +00:00
|
|
|
cd "$srcdir"
|
2020-04-15 07:57:10 +00:00
|
|
|
install -Dm644 "$srcdir"/modem.* -t "$subpkgdir/$_fwdir"
|
|
|
|
install -Dm644 "$srcdir"/mba.* -t "$subpkgdir/$_fwdir"
|
2020-04-08 10:32:40 +00:00
|
|
|
}
|
|
|
|
|
2020-04-15 07:57:10 +00:00
|
|
|
venus() {
|
|
|
|
pkgdesc="BQ Aquaris X5 video firmware"
|
|
|
|
install -Dm644 "$srcdir"/venus.* -t "$subpkgdir/$_fwdir"/qcom/venus-1.8
|
2020-04-08 10:32:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
wcnss() {
|
2020-04-15 07:57:10 +00:00
|
|
|
pkgdesc="BQ Aquaris X5 WiFi/BT firmware"
|
2020-04-08 10:32:40 +00:00
|
|
|
cd "$srcdir"
|
2020-04-15 07:57:10 +00:00
|
|
|
install -Dm644 "$srcdir"/wcnss.* -t "$subpkgdir/$_fwdir"
|
|
|
|
install -Dm644 "$srcdir"/WCNSS_* -t "$subpkgdir/$_fwdir"/wlan/prima
|
2020-04-08 10:32:40 +00:00
|
|
|
}
|
|
|
|
|
2020-04-15 07:57:10 +00:00
|
|
|
sha512sums="7f426e5fdb20319ed22c16be1ce13d069532bdfb8dc754a735c2a019342758b1f0210614dfeaa1d850802083a550ec8a6931d3572d203267cae8ec59f6613d82 picmt_firmware_files.tar.xz"
|