motorola-osprey: use msm-firmware-loader (MR 2431)

This commit is contained in:
Minecrell 2021-09-22 16:24:55 +02:00 committed by Alexey Minnekhanov
parent 933a9419c7
commit 271f30eca8
No known key found for this signature in database
GPG key ID: 6FE3B029D9D9FAFF
2 changed files with 8 additions and 23 deletions

View file

@ -1,7 +1,7 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-motorola-osprey
pkgver=2
pkgrel=3
pkgver=3
pkgrel=0
pkgdesc="Motorola Moto G 3rd gen. (2015)"
url="https://postmarketos.org"
arch="aarch64"
@ -15,7 +15,6 @@ subpackages="
$pkgname-kernel-mainline:kernel_mainline
$pkgname-kernel-mainline-modem:kernel_mainline_modem
$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-nonfree-firmware-modem:nonfree_firmware_modem
"
build() {
@ -40,14 +39,7 @@ kernel_mainline_modem() {
nonfree_firmware() {
pkgdesc="GPU/Wi-Fi/Bluetooth/Video(/Modem) firmware"
depends="linux-firmware-qcom firmware-motorola-osprey-wcnss firmware-motorola-osprey-venus"
mkdir "$subpkgdir"
}
nonfree_firmware_modem() {
pkgdesc="Modem firmware"
depends="firmware-motorola-osprey-modem"
install_if="$pkgname-nonfree-firmware $pkgname-kernel-mainline-modem"
depends="linux-firmware-qcom msm-firmware-loader firmware-motorola-osprey-wcnss-nv firmware-motorola-osprey-venus"
mkdir "$subpkgdir"
}

View file

@ -1,10 +1,10 @@
# Maintainer: Martijn Braam <martijn@brixit.nl>
pkgname=firmware-motorola-osprey
pkgver=1
pkgver=2
pkgrel=0
pkgdesc="Firmware for Motorola Moto G 2015"
url="https://github.com/pmsourcedump/firmware-motorola-osprey"
subpackages="$pkgname-wcnss $pkgname-venus $pkgname-modem"
subpackages="$pkgname-wcnss-nv:wcnss_nv $pkgname-venus"
arch="aarch64"
license="proprietary"
options="!check !strip !archcheck !tracedeps pmb:cross-native"
@ -18,10 +18,10 @@ package() {
mkdir -p "$pkgdir"
}
wcnss() {
pkgdesc="Motorola Moto G 2015 Wi-Fi/Bluetooth firmware"
wcnss_nv() {
pkgdesc="Motorola Moto G 2015 Wi-Fi/Bluetooth firmware configuration"
replaces="firmware-motorola-osprey-wcnss"
cd "$srcdir/firmware-motorola-osprey-$_commit"
install -Dm644 wcnss.* -t "$subpkgdir/$_fwdir"
install -Dm644 wlan/prima/WCNSS_qcom_wlan_nv.bin -t "$subpkgdir/$_fwdir/wlan/prima"
}
@ -32,11 +32,4 @@ venus() {
install -Dm644 venus.mdt -t "$subpkgdir/$_fwdir/qcom/venus-1.8"
}
modem() {
pkgdesc="Motorola Moto G 2015 modem firmware"
cd "$srcdir/firmware-motorola-osprey-$_commit"
install -Dm644 modem.* -t "$subpkgdir/$_fwdir"
install -Dm644 mba.mbn -t "$subpkgdir/$_fwdir"
}
sha512sums="7e8d02baa8864c50b4a8be1f9af830e8b5440eee61a012725ed114d93012f0fb19ec005908832d3c96e0ba54b51a5ec7bcf137bfcc64c63594212f2497604629 firmware-motorola-osprey-a47c5a1c2dd806226c61305c9c97135f2734d0c7.tar.gz"