pkgname=firmware-xiaomi-elish pkgver=20230516 pkgrel=0 pkgdesc="Firmware for Xiaomi Mi Pad 5 Pro" subpackages=" $pkgname-adreno $pkgname-adsp $pkgname-cdsp $pkgname-cirrus $pkgname-slpi $pkgname-touchscreen $pkgname-venus " url="https://github.com/lujianhua/xiaomi-elish-firmware" arch="aarch64" license="proprietary" options="!check !strip !archcheck !tracedeps pmb:cross-native" _commit="d81ba3dfd6b13a719906b1e1f708fd3e46c8c39b" source="https://github.com/lujianhua/xiaomi-elish-firmware/archive/$_commit/xiaomi-elish-firmware-$_commit.tar.gz" builddir="$srcdir/xiaomi-elish-firmware-$_commit" package() { # parent package is empty mkdir -p "$pkgdir" } # Xiaomi elish boots with secure boot, it can only load signed firmwares. adreno() { pkgdesc="Xiaomi elish adreno firmware" depends="firmware-qcom-adreno-a650" install -Dm644 "$builddir"/sm8250/a650_zap.mbn -t \ "$subpkgdir/lib/firmware/qcom/sm8250/xiaomi/elish/" } adsp() { pkgdesc="Xiaomi elish adsp firmware" install -Dm644 "$builddir"/sm8250/adsp* -t \ "$subpkgdir/lib/firmware/qcom/sm8250/xiaomi/elish/" } cdsp() { pkgdesc="Xiaomi elish cdsp firmware" install -Dm644 "$builddir"/sm8250/cdsp* -t \ "$subpkgdir/lib/firmware/qcom/sm8250/xiaomi/elish/" } cirrus() { pkgdesc="Xiaomi elish cirrus firmware" install -Dm644 "$builddir"/cirrus/cs35l41* -t \ "$subpkgdir/lib/firmware/cirrus/" } slpi() { pkgdesc="Xiaomi elish slpi firmware" install -Dm644 "$builddir"/sm8250/slpi* -t \ "$subpkgdir/lib/firmware/qcom/sm8250/xiaomi/elish/" } touchscreen() { pkgdesc="Xiaomi elish touchscreen firmware" install -Dm644 "$builddir"/novatek/nt36523* -t \ "$subpkgdir/lib/firmware/novatek/" } venus() { pkgdesc="Xiaomi elish venus firmware" install -Dm644 "$builddir"/sm8250/venus.mbn -t \ "$subpkgdir/lib/firmware/qcom/sm8250/xiaomi/elish/" } sha512sums=" e4e46e0c72d0f06c98cc8947a3c2ddf5edec84dff68cd9fa63059c50868a98e73dfa3acc9469f70ee245130f90c4d795a80871e82681162ee0df08aaab1ef22c xiaomi-elish-firmware-d81ba3dfd6b13a719906b1e1f708fd3e46c8c39b.tar.gz "