2019-10-13 11:00:28 +00:00
|
|
|
pkgname=firmware-motorola-harpia
|
2021-10-19 08:20:17 +00:00
|
|
|
pkgver=3
|
2023-01-22 21:02:00 +00:00
|
|
|
pkgrel=1
|
2019-10-13 11:00:28 +00:00
|
|
|
pkgdesc="Firmware for Motorola Moto G4 Play"
|
|
|
|
url="https://github.com/Sorixelle/vendor_motorola_harpia"
|
2021-09-22 13:57:03 +00:00
|
|
|
subpackages="$pkgname-wcnss-nv:wcnss_nv $pkgname-venus"
|
2019-10-13 11:00:28 +00:00
|
|
|
arch="aarch64"
|
|
|
|
license="proprietary"
|
2021-08-28 19:28:14 +00:00
|
|
|
options="!check !strip !archcheck !tracedeps pmb:cross-native"
|
2021-10-19 08:20:17 +00:00
|
|
|
makedepends="pil-squasher"
|
2019-10-13 11:00:28 +00:00
|
|
|
|
|
|
|
_commit="a81be710b0ff4ee7e5fd1962184dcd882cc13efc"
|
|
|
|
source="$pkgname-$_commit.tar.gz::$url/archive/$_commit.tar.gz"
|
2021-10-19 08:20:17 +00:00
|
|
|
builddir="$srcdir/vendor_motorola_harpia-$_commit"
|
2019-10-13 11:00:28 +00:00
|
|
|
|
|
|
|
_fwdir="/lib/firmware/postmarketos"
|
|
|
|
|
2021-10-19 08:20:17 +00:00
|
|
|
build() {
|
|
|
|
# venus.mbn exists already but seems a bit different
|
|
|
|
pil-squasher venus2.mbn venus.mdt
|
|
|
|
}
|
|
|
|
|
2019-10-13 11:00:28 +00:00
|
|
|
package() {
|
|
|
|
mkdir -p "$pkgdir"
|
|
|
|
}
|
|
|
|
|
2021-09-22 13:57:03 +00:00
|
|
|
wcnss_nv() {
|
2021-10-19 08:20:17 +00:00
|
|
|
pkgdesc="Motorola Moto G4 Play WiFi/BT firmware configuration"
|
2021-09-22 13:57:03 +00:00
|
|
|
replaces="firmware-motorola-harpia-wcnss"
|
2021-10-19 08:20:17 +00:00
|
|
|
install -Dm644 "$builddir"/wlan/prima/WCNSS_qcom_wlan_nv.bin -t "$subpkgdir/$_fwdir/wlan/prima"
|
2019-10-13 11:00:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
venus() {
|
|
|
|
pkgdesc="Motorola Moto G4 Play video firmware"
|
2021-10-19 08:20:17 +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
|
2019-10-13 11:00:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="56a7f815bea3d20a5ef0241ae109ac3823c6ac433e2a05389035b7005c7966d7a0a7719dbf5a562c6cf53c18cebd6893d31d27a6efc1a50c307565f873b1aa54 firmware-motorola-harpia-a81be710b0ff4ee7e5fd1962184dcd882cc13efc.tar.gz"
|