2021-07-26 20:20:56 +00:00
|
|
|
pkgname=firmware-bq-piccolo
|
|
|
|
pkgver=1
|
2022-12-15 19:06:58 +00:00
|
|
|
pkgrel=1
|
2021-07-26 20:20:56 +00:00
|
|
|
pkgdesc="Firmware for BQ Aquaris M5"
|
2022-12-15 19:06:58 +00:00
|
|
|
url="https://gitlab.com/a_a/"
|
|
|
|
subpackages="$pkgname-venus $pkgname-wcnss-nv:wcnss_nv"
|
2021-07-26 20:20:56 +00:00
|
|
|
arch="aarch64"
|
|
|
|
license="proprietary"
|
2022-12-15 19:06:58 +00:00
|
|
|
options="!check !strip !archcheck !tracedeps pmb:cross-native"
|
|
|
|
makedepends="pil-squasher"
|
|
|
|
_repository="firmware-bq-piccolo"
|
|
|
|
_commit="c7a376fd46f103642ec81a10e1f079bce0df2075"
|
|
|
|
source="$pkgname-$_commit.tar.gz::$url/$_repository/-/archive/$_commit.tar.gz"
|
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
2021-07-26 20:20:56 +00:00
|
|
|
|
|
|
|
_fwdir="/lib/firmware/postmarketos"
|
|
|
|
|
2022-12-15 19:06:58 +00:00
|
|
|
build() {
|
|
|
|
# venus.mbn exists already but seems a bit different
|
|
|
|
pil-squasher venus2.mbn venus.mdt
|
|
|
|
}
|
|
|
|
|
2021-07-26 20:20:56 +00:00
|
|
|
package() {
|
|
|
|
# parent package is empty
|
|
|
|
mkdir -p "$pkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
venus() {
|
|
|
|
pkgdesc="BQ Aquaris M5 video firmware"
|
|
|
|
|
2022-12-15 19:06:58 +00:00
|
|
|
# Linux detects squashed (.mbn) vs non-squashed (.mdt + .b*) based on
|
|
|
|
# file contents, so it is fine to install venus.mbn to venus.mdt
|
|
|
|
install -Dm644 "$builddir"/venus2.mbn "$subpkgdir/$_fwdir"/qcom/venus-1.8/venus.mdt
|
2021-07-26 20:20:56 +00:00
|
|
|
}
|
|
|
|
|
2022-12-15 19:06:58 +00:00
|
|
|
wcnss_nv() {
|
|
|
|
pkgdesc="BQ Aquaris M5 WiFi/BT firmware configuration"
|
|
|
|
install -Dm644 "$builddir"/wlan/prima/WCNSS_qcom_wlan_nv.bin -t "$subpkgdir/$_fwdir"/wlan/prima
|
|
|
|
}
|
2021-07-26 20:20:56 +00:00
|
|
|
|
|
|
|
sha512sums="
|
|
|
|
451a15cc01efa955c035ade5cdd7ce066eb9816bcc1facd7d0e6649aa746509f235a798e33d92a47c649a3cd05ed886fdcf6d817470789e5af4a7e41f8330c0f firmware-bq-piccolo-c7a376fd46f103642ec81a10e1f079bce0df2075.tar.gz
|
|
|
|
"
|