wileyfox-crackling: use msm-firmware-loader (MR 2431)

This commit is contained in:
Minecrell 2021-09-22 16:14:16 +02:00 committed by Alexey Minnekhanov
parent 9a62629825
commit 4662042bfa
No known key found for this signature in database
GPG key ID: 6FE3B029D9D9FAFF
2 changed files with 11 additions and 13 deletions

View file

@ -3,8 +3,8 @@
# Co-Maintainer: Minecrell <minecrell@minecrell.net> # Co-Maintainer: Minecrell <minecrell@minecrell.net>
pkgname=device-wileyfox-crackling pkgname=device-wileyfox-crackling
pkgdesc="Wileyfox Swift" pkgdesc="Wileyfox Swift"
pkgver=3 pkgver=4
pkgrel=4 pkgrel=0
url="https://postmarketos.org" url="https://postmarketos.org"
license="MIT" license="MIT"
arch="aarch64" arch="aarch64"
@ -16,7 +16,6 @@ subpackages="
$pkgname-kernel-mainline:kernel_mainline $pkgname-kernel-mainline:kernel_mainline
$pkgname-kernel-mainline-modem:kernel_mainline_modem $pkgname-kernel-mainline-modem:kernel_mainline_modem
$pkgname-nonfree-firmware:nonfree_firmware $pkgname-nonfree-firmware:nonfree_firmware
$pkgname-nonfree-firmware-modem:nonfree_firmware_modem
" "
build() { build() {
@ -41,14 +40,7 @@ kernel_mainline_modem() {
nonfree_firmware() { nonfree_firmware() {
pkgdesc="GPU/WiFi/BT/Video(/Modem) firmware" pkgdesc="GPU/WiFi/BT/Video(/Modem) firmware"
depends="linux-firmware-qcom firmware-wileyfox-crackling-venus firmware-wileyfox-crackling-wcnss" depends="linux-firmware-qcom msm-firmware-loader firmware-wileyfox-crackling-wcnss-nv firmware-wileyfox-crackling-venus"
mkdir "$subpkgdir"
}
nonfree_firmware_modem() {
pkgdesc="Modem firmware"
depends="firmware-wileyfox-crackling-modem"
install_if="$pkgname-nonfree-firmware $pkgname-kernel-mainline-modem"
mkdir "$subpkgdir" mkdir "$subpkgdir"
} }

View file

@ -1,9 +1,9 @@
pkgname=firmware-wileyfox-crackling pkgname=firmware-wileyfox-crackling
pkgver=2 pkgver=3
pkgrel=0 pkgrel=0
pkgdesc="Firmware for Wileyfox Swift" pkgdesc="Firmware for Wileyfox Swift"
url="https://rizzotherat.gitlab.io/firmware/" url="https://rizzotherat.gitlab.io/firmware/"
subpackages="$pkgname-modem $pkgname-venus $pkgname-wcnss" subpackages="$pkgname-modem $pkgname-venus $pkgname-wcnss $pkgname-wcnss-nv:wcnss_nv"
arch="aarch64" arch="aarch64"
license="proprietary" license="proprietary"
options="!check !strip !archcheck !tracedeps pmb:cross-native" options="!check !strip !archcheck !tracedeps pmb:cross-native"
@ -31,6 +31,12 @@ wcnss() {
pkgdesc="Wileyfox Swift WiFi/BT firmware" pkgdesc="Wileyfox Swift WiFi/BT firmware"
cd "$srcdir" cd "$srcdir"
install -Dm644 wcnss.* -t "$subpkgdir/$_fwdir" install -Dm644 wcnss.* -t "$subpkgdir/$_fwdir"
}
wcnss_nv() {
pkgdesc="Wileyfox Swift WiFi/BT firmware configuration"
replaces="firmware-wileyfox-crackling-wcnss"
cd "$srcdir"
install -Dm644 WCNSS_* -t "$subpkgdir/$_fwdir"/wlan/prima install -Dm644 WCNSS_* -t "$subpkgdir/$_fwdir"/wlan/prima
} }