2019-07-12 19:42:56 +00:00
|
|
|
pkgname=firmware-wileyfox-crackling
|
2023-11-13 10:10:20 +00:00
|
|
|
pkgver=5
|
2021-10-19 08:20:17 +00:00
|
|
|
pkgrel=0
|
2019-07-12 19:42:56 +00:00
|
|
|
pkgdesc="Firmware for Wileyfox Swift"
|
|
|
|
url="https://rizzotherat.gitlab.io/firmware/"
|
2021-10-19 08:00:37 +00:00
|
|
|
subpackages="$pkgname-venus $pkgname-wcnss-nv:wcnss_nv"
|
2019-07-12 19:42:56 +00:00
|
|
|
arch="aarch64"
|
|
|
|
license="proprietary"
|
2021-08-28 19:28:14 +00:00
|
|
|
options="!check !strip !archcheck !tracedeps pmb:cross-native"
|
2021-10-19 08:20:17 +00:00
|
|
|
makedepends="pil-squasher"
|
2019-07-12 19:42:56 +00:00
|
|
|
source="https://rizzotherat.gitlab.io/firmware/crackling.tar.xz"
|
|
|
|
|
|
|
|
_fwdir="/lib/firmware/postmarketos"
|
|
|
|
|
2021-10-19 08:20:17 +00:00
|
|
|
build() {
|
|
|
|
# venus.mbn exists already but seems a bit different
|
|
|
|
pil-squasher venus2.mbn venus.mdt
|
|
|
|
}
|
|
|
|
|
2019-07-12 19:42:56 +00:00
|
|
|
package() {
|
|
|
|
# parent package is empty
|
|
|
|
mkdir -p "$pkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
venus() {
|
|
|
|
pkgdesc="Wileyfox Swift video firmware"
|
2021-10-19 08:20:17 +00:00
|
|
|
|
|
|
|
# Linux detects squashed (.mbn) vs non-squashed (.mdt + .b*) based on
|
2023-11-13 10:10:20 +00:00
|
|
|
# file contents, so it is fine to link venus.mbn to venus.mdt
|
|
|
|
# Older kernels look for venus.mdt, newer ones directly for venus.mbn
|
|
|
|
install -Dm644 "$srcdir"/venus2.mbn "$subpkgdir/$_fwdir"/qcom/venus-1.8/venus.mbn
|
|
|
|
ln -s venus.mbn "$subpkgdir/$_fwdir"/qcom/venus-1.8/venus.mdt
|
2019-07-12 19:42:56 +00:00
|
|
|
}
|
|
|
|
|
2021-09-22 14:14:16 +00:00
|
|
|
wcnss_nv() {
|
|
|
|
pkgdesc="Wileyfox Swift WiFi/BT firmware configuration"
|
|
|
|
replaces="firmware-wileyfox-crackling-wcnss"
|
2021-10-19 08:20:17 +00:00
|
|
|
install -Dm644 "$srcdir"/WCNSS_qcom_wlan_nv.bin -t "$subpkgdir/$_fwdir"/wlan/prima
|
2019-07-12 19:42:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="44e5c6d2ab28576548689bf43ecf5ac0a2ee42a49e0f993a459a59f80063775a00976bfe1a7db8d82ff82b92bf502832bf1c61ab456a131696f2fa5e09af16b3 crackling.tar.xz"
|