2022-09-04 13:14:13 +00:00
|
|
|
# Maintainer: Craig Comstock <craig@unreasonablefarm.org>
|
2021-02-10 16:36:15 +00:00
|
|
|
pkgname=firmware-motorola-surnia
|
2022-09-04 13:14:13 +00:00
|
|
|
pkgver=1
|
2021-02-10 16:36:15 +00:00
|
|
|
pkgrel=0
|
|
|
|
pkgdesc="Firmware for Motorola Moto E 2015 (2nd gen)"
|
|
|
|
url="https://github.com/linuxgorl/vendor_motorola_surnia"
|
2022-09-04 13:14:13 +00:00
|
|
|
subpackages="$pkgname-wcnss-nv:wcnss_nv $pkgname-venus"
|
|
|
|
arch="aarch64"
|
2021-02-10 16:36:15 +00:00
|
|
|
license="proprietary"
|
2021-08-28 19:28:14 +00:00
|
|
|
options="!check !strip !archcheck !tracedeps pmb:cross-native"
|
2021-02-10 16:36:15 +00:00
|
|
|
|
|
|
|
_commit="b8dbec48197c086d22371d360fa41387880a1dcb"
|
|
|
|
source="$pkgname-$_commit.tar.gz::$url/archive/$_commit.tar.gz"
|
|
|
|
|
2022-09-04 13:14:13 +00:00
|
|
|
builddir="$srcdir/vendor_motorola_surnia-$_commit"
|
|
|
|
|
2021-02-10 16:36:15 +00:00
|
|
|
_fwdir="/lib/firmware/postmarketos"
|
|
|
|
|
|
|
|
package() {
|
|
|
|
mkdir -p "$pkgdir"
|
|
|
|
}
|
|
|
|
|
2022-09-04 13:14:13 +00:00
|
|
|
wcnss_nv() {
|
|
|
|
pkgdesc="Motorola Moto E 2015 (2nd gen) Wi-Fi/Bluetooth firmware configuration"
|
|
|
|
replaces="firmware-motorola-surnia-wcnss"
|
|
|
|
install -Dm644 "$builddir"/wlan/prima/WCNSS_qcom_wlan_nv.bin -t "$subpkgdir/$_fwdir/wlan/prima"
|
2021-02-10 16:36:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
venus() {
|
|
|
|
pkgdesc="Motorola Moto E 2015 (2nd gen) video firmware"
|
|
|
|
|
2022-09-04 13:14:13 +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"/venus.mbn "$subpkgdir/$_fwdir"/qcom/venus-1.8/venus.mdt
|
2021-02-10 16:36:15 +00:00
|
|
|
}
|
|
|
|
|
2022-09-04 13:14:13 +00:00
|
|
|
|
|
|
|
sha512sums="
|
|
|
|
859f81ef316ee025245e217e8bca891c89dade23781cc386d6c930608cbd8aba78b0f3c93a0ad1a265ba20554379fe60331e32c1924ee4dd9151f8c146be347f firmware-motorola-surnia-b8dbec48197c086d22371d360fa41387880a1dcb.tar.gz
|
|
|
|
"
|