2019-10-13 11:00:28 +00:00
|
|
|
# Maintainer: Ruby Iris Juric <ruby@srxl.me>
|
|
|
|
pkgname=firmware-motorola-harpia
|
2021-09-22 13:57:03 +00:00
|
|
|
pkgver=2
|
|
|
|
pkgrel=0
|
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"
|
2019-10-13 11:00:28 +00:00
|
|
|
|
|
|
|
_commit="a81be710b0ff4ee7e5fd1962184dcd882cc13efc"
|
|
|
|
source="$pkgname-$_commit.tar.gz::$url/archive/$_commit.tar.gz"
|
|
|
|
|
|
|
|
_fwdir="/lib/firmware/postmarketos"
|
|
|
|
|
|
|
|
package() {
|
|
|
|
mkdir -p "$pkgdir"
|
|
|
|
}
|
|
|
|
|
2021-09-22 13:57:03 +00:00
|
|
|
wcnss_nv() {
|
|
|
|
pkgdesc="Motorola Moto G4 Play Wi-Fi/Bluetooth firmware configuration"
|
|
|
|
replaces="firmware-motorola-harpia-wcnss"
|
2019-10-13 11:00:28 +00:00
|
|
|
cd "$srcdir/vendor_motorola_harpia-$_commit"
|
2020-02-13 15:12:45 +00:00
|
|
|
install -Dm644 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"
|
|
|
|
cd "$srcdir/vendor_motorola_harpia-$_commit"
|
2020-02-13 15:12:45 +00:00
|
|
|
install -Dm644 venus.b* -t "$subpkgdir/$_fwdir/qcom/venus-1.8"
|
|
|
|
install -Dm644 venus.mdt -t "$subpkgdir/$_fwdir/qcom/venus-1.8"
|
2019-10-13 11:00:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="56a7f815bea3d20a5ef0241ae109ac3823c6ac433e2a05389035b7005c7966d7a0a7719dbf5a562c6cf53c18cebd6893d31d27a6efc1a50c307565f873b1aa54 firmware-motorola-harpia-a81be710b0ff4ee7e5fd1962184dcd882cc13efc.tar.gz"
|