4724b0f9c1
Right now we have all firmware packages under firmware/*. This is problematic for mainly two reasons: - It's not immediately clear which firmware packages we need to keep when forking a new stable branch. (Where we delete testing devices at the moment...) We might end up deleting firmware packages that are actually used by one of the devices in community. - When backporting devices to the stable we cannot just cherry-pick the commit that moved the device to community (since it does not contain the firmware package). Instead we need to cherry-pick earlier commits as well, which may touch a lot of deleted files in the testing directory. Let's make this consistent by also placing the firmware packages in the device/* directory. We already have the common firmware- prefix to distinguish them from device/kernel packages, which are already both under the device/* directory.
42 lines
1.4 KiB
Text
42 lines
1.4 KiB
Text
# Maintainer: Ruby Iris Juric <ruby@srxl.me>
|
|
pkgname=firmware-motorola-harpia
|
|
pkgver=1
|
|
pkgrel=2
|
|
pkgdesc="Firmware for Motorola Moto G4 Play"
|
|
url="https://github.com/Sorixelle/vendor_motorola_harpia"
|
|
subpackages="$pkgname-wcnss $pkgname-venus $pkgname-modem"
|
|
arch="aarch64"
|
|
license="proprietary"
|
|
options="!check !strip !archcheck"
|
|
|
|
_commit="a81be710b0ff4ee7e5fd1962184dcd882cc13efc"
|
|
source="$pkgname-$_commit.tar.gz::$url/archive/$_commit.tar.gz"
|
|
|
|
_fwdir="/lib/firmware/postmarketos"
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"
|
|
}
|
|
|
|
wcnss() {
|
|
pkgdesc="Motorola Moto G4 Play Wi-Fi/Bluetooth firmware"
|
|
cd "$srcdir/vendor_motorola_harpia-$_commit"
|
|
install -Dm644 wcnss.* -t "$subpkgdir/$_fwdir"
|
|
install -Dm644 wlan/prima/WCNSS_qcom_wlan_nv.bin -t "$subpkgdir/$_fwdir/wlan/prima"
|
|
}
|
|
|
|
venus() {
|
|
pkgdesc="Motorola Moto G4 Play video firmware"
|
|
cd "$srcdir/vendor_motorola_harpia-$_commit"
|
|
install -Dm644 venus.b* -t "$subpkgdir/$_fwdir/qcom/venus-1.8"
|
|
install -Dm644 venus.mdt -t "$subpkgdir/$_fwdir/qcom/venus-1.8"
|
|
}
|
|
|
|
modem() {
|
|
pkgdesc="Motorola Moto G4 Play modem firmware"
|
|
cd "$srcdir/vendor_motorola_harpia-$_commit"
|
|
install -Dm644 modem.* -t "$subpkgdir/$_fwdir"
|
|
install -Dm644 mba.mbn -t "$subpkgdir/$_fwdir"
|
|
}
|
|
|
|
sha512sums="56a7f815bea3d20a5ef0241ae109ac3823c6ac433e2a05389035b7005c7966d7a0a7719dbf5a562c6cf53c18cebd6893d31d27a6efc1a50c307565f873b1aa54 firmware-motorola-harpia-a81be710b0ff4ee7e5fd1962184dcd882cc13efc.tar.gz"
|