2020-11-27 10:06:49 +00:00
|
|
|
pkgname=firmware-asus-z010d
|
2021-10-19 08:20:17 +00:00
|
|
|
pkgver=3
|
2021-09-22 14:33:09 +00:00
|
|
|
pkgrel=0
|
2020-11-27 10:06:49 +00:00
|
|
|
pkgdesc="Firmware for Asus Zenfone Max ZC550KL"
|
2020-12-13 10:12:06 +00:00
|
|
|
url="https://gitlab.com/camillathechicken/firmware-max"
|
2021-09-22 14:33:09 +00:00
|
|
|
subpackages="$pkgname-wcnss-nv:wcnss_nv $pkgname-venus"
|
2020-11-27 10:06:49 +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"
|
2020-11-27 10:06:49 +00:00
|
|
|
|
|
|
|
_tag="v0.1"
|
|
|
|
_repo="firmware-max"
|
|
|
|
|
|
|
|
source="$pkgname-$_tag.tar.gz::https://gitlab.com/camillathechicken/$_repo/-/archive/$_tag/$_repo-$_tag.tar.gz"
|
|
|
|
builddir="$srcdir/$_repo-$_tag"
|
|
|
|
|
|
|
|
_fwdir="/lib/firmware/postmarketos"
|
|
|
|
|
2021-10-19 08:20:17 +00:00
|
|
|
build() {
|
|
|
|
pil-squasher venus2.mbn venus.mdt
|
|
|
|
}
|
|
|
|
|
2020-11-27 10:06:49 +00:00
|
|
|
package() {
|
|
|
|
# parent package is empty
|
|
|
|
mkdir -p "$pkgdir"
|
|
|
|
}
|
|
|
|
|
2021-09-22 14:33:09 +00:00
|
|
|
wcnss_nv() {
|
|
|
|
pkgdesc="Asus Zenfone Max ZC550KL WiFi/BT firmware configuration"
|
|
|
|
replaces="firmware-asus-z010d-wcnss"
|
2021-10-19 08:20:17 +00:00
|
|
|
install -Dm644 "$builddir"/WCNSS_qcom_wlan_nv.bin -t "$subpkgdir/$_fwdir"/wlan/prima
|
2020-11-27 10:06:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
venus() {
|
|
|
|
pkgdesc="Asus Zenfone Max ZC550KL video firmware"
|
2021-10-19 08:20:17 +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-11-27 10:06:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="870c4835de86aac68f29249d6f1545dc8b9ccdb4c3a19ed19eb3429c5d0ab40ed3ffceba36bf54b69a9e3ca2170fde66b2e357a8686580865bfa38e8b99e0cd6 firmware-asus-z010d-v0.1.tar.gz"
|