firmware/firmware-bq-picmt: various improvements (MR 1315)

- Set fixed commit in "source" line to avoid future problems if some
  change is pushed to the repository
- Add pmb:cross-native to build natively since these are just a few
  copy operations
- Remove some unneeded `cd "$srcdir"` lines
- Avoid installing venus.mbn since this is just a combined version of
  venus.mdt + venus.b*
- Split -wcnss subpackage into -wcnss and -wcnss-nv to allow replacing
  the WCNSS firmware with a newer version from firmware-qcom-db410c
  - Provide "firmware-qcom-msm8916-wcnss" to still allow switching to
    the original firmware if wanted
- Install only WCNSS_qcom_wlan_nv.bin for aarch64 since the other
  configuration files are only needed for downstream (armv7)
This commit is contained in:
Minecrell 2020-06-08 22:25:00 +02:00
parent 1785be13dd
commit dbaa5a9702
No known key found for this signature in database
GPG key ID: B77CE638A6C2E562

View file

@ -1,13 +1,14 @@
pkgname=firmware-bq-picmt
pkgver=1
pkgver=2
pkgrel=0
_commit="04cced17ab21d84ea6145e58f0b12fd67ef640d0"
pkgdesc="Firmware for BQ Aquaris X5"
url="https://github.com/JonnyMe/picmt-firmware"
subpackages="$pkgname-modem $pkgname-venus $pkgname-wcnss"
subpackages="$pkgname-modem $pkgname-venus $pkgname-wcnss $pkgname-wcnss-nv:wcnss_nv"
arch="aarch64 armv7"
license="proprietary"
options="!check !strip !archcheck"
source="https://github.com/JonnyMe/picmt-firmware/raw/master/picmt_firmware_files.tar.xz"
options="!check !strip !archcheck !tracedeps pmb:cross-native"
source="https://github.com/JonnyMe/picmt-firmware/raw/$_commit/picmt_firmware_files.tar.xz"
_fwdir="/lib/firmware/postmarketos"
@ -18,21 +19,33 @@ package() {
modem() {
pkgdesc="BQ Aquaris X5 modem firmware"
cd "$srcdir"
install -Dm644 "$srcdir"/modem.* -t "$subpkgdir/$_fwdir"
install -Dm644 "$srcdir"/mba.* -t "$subpkgdir/$_fwdir"
}
venus() {
pkgdesc="BQ Aquaris X5 video firmware"
install -Dm644 "$srcdir"/venus.* -t "$subpkgdir/$_fwdir"/qcom/venus-1.8
install -Dm644 "$srcdir"/venus.mdt "$srcdir"/venus.b* \
-t "$subpkgdir/$_fwdir"/qcom/venus-1.8
}
wcnss() {
pkgdesc="BQ Aquaris X5 WiFi/BT firmware"
cd "$srcdir"
provides="firmware-qcom-msm8916-wcnss"
install -Dm644 "$srcdir"/wcnss.* -t "$subpkgdir/$_fwdir"
install -Dm644 "$srcdir"/WCNSS_* -t "$subpkgdir/$_fwdir"/wlan/prima
}
wcnss_nv() {
pkgdesc="BQ Aquaris X5 WiFi/BT firmware configuration"
case "$CARCH" in
# WCNSS_cfg.dat etc are only needed on downstream (armv7)
armv7) files="WCNSS_*" ;;
*) files="WCNSS_qcom_wlan_nv.bin" ;;
esac
install -Dm644 "$srcdir"/$files -t "$subpkgdir/$_fwdir"/wlan/prima
}
sha512sums="7f426e5fdb20319ed22c16be1ce13d069532bdfb8dc754a735c2a019342758b1f0210614dfeaa1d850802083a550ec8a6931d3572d203267cae8ec59f6613d82 picmt_firmware_files.tar.xz"