2020-12-23 16:33:47 +00:00
|
|
|
pkgname=firmware-huawei-kiwi
|
|
|
|
pkgver=1
|
2022-12-15 12:18:42 +00:00
|
|
|
pkgrel=1
|
2020-12-23 16:33:47 +00:00
|
|
|
pkgdesc="Firmware for Huawei Honor 5X"
|
|
|
|
url="https://git.sr.ht/~bo41/firmware-huawei-kiwi"
|
2022-12-15 12:18:42 +00:00
|
|
|
subpackages="$pkgname-venus $pkgname-wcnss-nv:wcnss_nv"
|
2020-12-23 16:33:47 +00:00
|
|
|
arch="aarch64"
|
|
|
|
license="proprietary"
|
2021-08-28 19:28:14 +00:00
|
|
|
options="!check !strip !archcheck !tracedeps pmb:cross-native"
|
2022-12-15 12:18:42 +00:00
|
|
|
makedepends="pil-squasher"
|
2020-12-23 16:33:47 +00:00
|
|
|
_commit="2a4db2a026568abfaf342211e9f3d63ac044a9d9"
|
|
|
|
source="$pkgname-$_commit.tar.gz::$url/archive/$_commit.tar.gz"
|
2022-12-15 12:18:42 +00:00
|
|
|
builddir="$srcdir/$pkgname-$_commit"
|
2020-12-23 16:33:47 +00:00
|
|
|
|
|
|
|
_fwdir="/lib/firmware/postmarketos"
|
2022-12-15 12:18:42 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
# venus.mbn exists already but seems a bit different
|
|
|
|
pil-squasher venus2.mbn venus.mdt
|
|
|
|
}
|
2020-12-23 16:33:47 +00:00
|
|
|
|
|
|
|
package() {
|
|
|
|
# parent package is empty
|
|
|
|
mkdir -p "$pkgdir"
|
2022-12-15 12:18:42 +00:00
|
|
|
}
|
2020-12-23 16:33:47 +00:00
|
|
|
|
2022-12-15 12:18:42 +00:00
|
|
|
venus() {
|
|
|
|
pkgdesc="Huawei Honor 5X video firmware"
|
2020-12-23 16:33:47 +00:00
|
|
|
|
2022-12-15 12:18:42 +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"/venus2.mbn "$subpkgdir/$_fwdir"/qcom/venus-1.8/venus.mdt
|
|
|
|
}
|
2020-12-23 16:33:47 +00:00
|
|
|
|
2022-12-15 12:18:42 +00:00
|
|
|
wcnss_nv() {
|
|
|
|
pkgdesc="Huawei Honor 5X WiFi/BT firmware configuration"
|
|
|
|
install -Dm644 "$builddir"/WCNSS_qcom_wlan_nv.bin -t "$subpkgdir/$_fwdir"/wlan/prima
|
2020-12-23 16:33:47 +00:00
|
|
|
}
|
|
|
|
|
2022-12-15 12:18:42 +00:00
|
|
|
sha512sums="
|
|
|
|
a5aa89b37ff2e6ac5e8808cf6be97d7850e0d52c7654abf6c044de54c42c737a0b4242c439856dd56c4c5f2721b79941b604ac5a42506aec8020283c446301d4 firmware-huawei-kiwi-2a4db2a026568abfaf342211e9f3d63ac044a9d9.tar.gz
|
|
|
|
"
|