2022-05-16 19:27:33 +00:00
|
|
|
pkgname=firmware-xiaomi-elish
|
2024-01-09 04:32:22 +00:00
|
|
|
pkgver=20240109
|
2022-05-16 19:27:33 +00:00
|
|
|
pkgrel=0
|
|
|
|
pkgdesc="Firmware for Xiaomi Mi Pad 5 Pro"
|
|
|
|
subpackages="
|
|
|
|
$pkgname-adreno
|
2023-03-07 06:08:56 +00:00
|
|
|
$pkgname-adsp
|
|
|
|
$pkgname-cdsp
|
2023-03-28 18:28:56 +00:00
|
|
|
$pkgname-cirrus
|
2023-03-07 06:08:56 +00:00
|
|
|
$pkgname-slpi
|
2022-08-21 05:37:06 +00:00
|
|
|
$pkgname-touchscreen
|
2022-06-12 14:55:13 +00:00
|
|
|
$pkgname-venus
|
2022-05-16 19:27:33 +00:00
|
|
|
"
|
|
|
|
url="https://github.com/lujianhua/xiaomi-elish-firmware"
|
|
|
|
arch="aarch64"
|
|
|
|
license="proprietary"
|
|
|
|
options="!check !strip !archcheck !tracedeps pmb:cross-native"
|
2024-01-09 04:32:22 +00:00
|
|
|
_commit="013b45d1fe64a392c94dc6c58aba72c791be6209"
|
2022-05-16 19:27:33 +00:00
|
|
|
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"
|
2022-06-12 14:55:13 +00:00
|
|
|
depends="firmware-qcom-adreno-a650"
|
2022-05-16 19:27:33 +00:00
|
|
|
|
|
|
|
install -Dm644 "$builddir"/sm8250/a650_zap.mbn -t \
|
2023-03-07 06:08:56 +00:00
|
|
|
"$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/"
|
|
|
|
}
|
|
|
|
|
2023-03-28 18:28:56 +00:00
|
|
|
cirrus() {
|
|
|
|
pkgdesc="Xiaomi elish cirrus firmware"
|
|
|
|
|
|
|
|
install -Dm644 "$builddir"/cirrus/cs35l41* -t \
|
|
|
|
"$subpkgdir/lib/firmware/cirrus/"
|
|
|
|
}
|
|
|
|
|
2023-03-07 06:08:56 +00:00
|
|
|
slpi() {
|
|
|
|
pkgdesc="Xiaomi elish slpi firmware"
|
|
|
|
|
|
|
|
install -Dm644 "$builddir"/sm8250/slpi* -t \
|
|
|
|
"$subpkgdir/lib/firmware/qcom/sm8250/xiaomi/elish/"
|
2022-05-16 19:27:33 +00:00
|
|
|
}
|
|
|
|
|
2022-08-21 05:37:06 +00:00
|
|
|
touchscreen() {
|
|
|
|
pkgdesc="Xiaomi elish touchscreen firmware"
|
|
|
|
|
2023-03-28 18:28:56 +00:00
|
|
|
install -Dm644 "$builddir"/novatek/nt36523* -t \
|
2022-08-21 05:37:06 +00:00
|
|
|
"$subpkgdir/lib/firmware/novatek/"
|
|
|
|
}
|
|
|
|
|
2022-06-12 14:55:13 +00:00
|
|
|
venus() {
|
|
|
|
pkgdesc="Xiaomi elish venus firmware"
|
|
|
|
|
|
|
|
install -Dm644 "$builddir"/sm8250/venus.mbn -t \
|
2023-03-07 06:08:56 +00:00
|
|
|
"$subpkgdir/lib/firmware/qcom/sm8250/xiaomi/elish/"
|
2022-06-12 14:55:13 +00:00
|
|
|
}
|
|
|
|
|
2022-05-16 19:27:33 +00:00
|
|
|
sha512sums="
|
2024-01-09 04:32:22 +00:00
|
|
|
0581361b9b376ed52798622e337294933b81b594ab7fb223668531e297acc977ce5b6770a0ee5bf7382c1989a6e4d64184f5ce937ea6cb9171e6b4a5bbc7ff16 xiaomi-elish-firmware-013b45d1fe64a392c94dc6c58aba72c791be6209.tar.gz
|
2022-05-16 19:27:33 +00:00
|
|
|
"
|