2018-04-25 09:40:16 +00:00
|
|
|
pkgname=firmware-xiaomi-mido
|
2020-11-13 22:38:56 +00:00
|
|
|
pkgver=2
|
|
|
|
pkgrel=0
|
|
|
|
pkgdesc="Firmware for Xiaomi Redmi Note 4X"
|
|
|
|
url="https://github.com/Kiciuk/proprietary_firmware_mido"
|
2018-11-07 07:43:32 +00:00
|
|
|
arch="aarch64"
|
2018-04-25 09:40:16 +00:00
|
|
|
license="proprietary"
|
2021-08-28 19:28:14 +00:00
|
|
|
options="!check !strip !archcheck !tracedeps pmb:cross-native"
|
2020-11-13 22:38:56 +00:00
|
|
|
_commit="bc001cbb255a0ded2b58af07b93f712cd9322483"
|
|
|
|
source="https://github.com/Kiciuk/proprietary_firmware_mido/archive/$_commit.zip"
|
|
|
|
builddir="$srcdir/proprietary_firmware_mido-$_commit"
|
2018-04-25 09:40:16 +00:00
|
|
|
|
2020-11-13 22:38:56 +00:00
|
|
|
_fwdir="/lib/firmware/postmarketos"
|
2018-04-25 09:40:16 +00:00
|
|
|
|
2020-01-06 17:41:58 +00:00
|
|
|
package() {
|
2020-11-13 22:38:56 +00:00
|
|
|
# parent package is empty
|
|
|
|
mkdir -p "$pkgdir"
|
|
|
|
|
|
|
|
# modem firmware
|
|
|
|
install -Dm644 modem/mba.mbn -t "$pkgdir/$_fwdir"
|
|
|
|
install -Dm644 modem/modem.* -t "$pkgdir/$_fwdir"
|
|
|
|
|
|
|
|
# video firmware
|
|
|
|
install -Dm644 apnhlos/venus.* -t "$pkgdir/$_fwdir"
|
|
|
|
|
|
|
|
# WiFi/BT firmware
|
|
|
|
install -Dm644 apnhlos/wcnss.* -t "$pkgdir/$_fwdir"
|
|
|
|
install -Dm644 firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin -t "$pkgdir/$_fwdir"/wlan/prima
|
|
|
|
|
|
|
|
# ADSP firmware
|
|
|
|
install -Dm644 modem/adsp.* -t "$pkgdir/$_fwdir"
|
|
|
|
|
|
|
|
# GPU firmware
|
|
|
|
install -Dm644 apnhlos/a506_zap.* -t "$pkgdir/$_fwdir"
|
2018-04-25 09:40:16 +00:00
|
|
|
}
|
|
|
|
|
2020-11-13 22:38:56 +00:00
|
|
|
sha512sums="09a671286f1bc2389763432b42be30d2a7b52717cc2f2cb1dc0e144d3ade84fadcfd3971b5dec7bbc04750fac93be0ef2bba81bbd6740ce3da396899c03f0a1c bc001cbb255a0ded2b58af07b93f712cd9322483.zip"
|