pmaports/device/testing/firmware-xiaomi-elish/APKBUILD

40 lines
1.2 KiB
Text

pkgname=firmware-xiaomi-elish
pkgver=20220612
pkgrel=0
pkgdesc="Firmware for Xiaomi Mi Pad 5 Pro"
subpackages="
$pkgname-adreno
$pkgname-venus
"
url="https://github.com/lujianhua/xiaomi-elish-firmware"
arch="aarch64"
license="proprietary"
options="!check !strip !archcheck !tracedeps pmb:cross-native"
_commit="d14ee69eaeb8955b20c8311c746cc0d088009279"
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/elish/"
}
venus() {
pkgdesc="Xiaomi elish venus firmware"
install -Dm644 "$builddir"/sm8250/venus.mbn -t \
"$subpkgdir/lib/firmware/qcom/sm8250/elish/"
}
sha512sums="
0eb1bb9e60a30c480b72fac3cef6b9f366e611a5b5b184aa9549866aa47aa61ffb31dc4b5fbf900ce084636a81023dcc8331dae833717124e7f0f1cd20845c14 xiaomi-elish-firmware-d14ee69eaeb8955b20c8311c746cc0d088009279.tar.gz
"