2022-11-28 11:01:17 +00:00
|
|
|
# Maintainer: m0rf30 <morf3089@gmail.com>
|
|
|
|
pkgname=firmware-xiaomi-tulip
|
2024-06-22 20:27:36 +00:00
|
|
|
pkgver=3
|
2024-06-21 18:12:31 +00:00
|
|
|
pkgrel=0
|
|
|
|
_commit="c8f750d4cdd8c5353c4aaa423f81774c63f87d27"
|
2022-11-28 11:01:17 +00:00
|
|
|
pkgdesc="Firmware files for Xiaomi Redmi Note 6 Pro"
|
2024-06-21 18:12:31 +00:00
|
|
|
url="https://postmarketos.org"
|
2022-11-28 11:01:17 +00:00
|
|
|
arch="aarch64"
|
|
|
|
license="proprietary"
|
2024-06-21 18:12:31 +00:00
|
|
|
options="!strip !check !archcheck !spdx !tracedeps pmb:cross-native"
|
2024-06-22 20:27:36 +00:00
|
|
|
makedepends="qca-swiss-army-knife"
|
2024-06-21 18:12:31 +00:00
|
|
|
source="$pkgname-$_commit.tar.gz::https://github.com/M0Rf30/postmarketos-vendor-xiaomi-tulip/archive/$_commit.tar.gz
|
2022-11-28 11:01:17 +00:00
|
|
|
30-gpu-firmware.files
|
2024-06-21 18:12:31 +00:00
|
|
|
"
|
2022-11-28 11:01:17 +00:00
|
|
|
|
|
|
|
builddir="$srcdir/postmarketos-vendor-xiaomi-tulip-$_commit"
|
2024-06-22 20:27:36 +00:00
|
|
|
_fwdir="/lib/firmware"
|
2022-11-28 11:01:17 +00:00
|
|
|
|
|
|
|
package() {
|
|
|
|
while IFS="" read -r fw; do
|
2024-06-22 20:27:36 +00:00
|
|
|
install -Dm644 "$fw" "$pkgdir/$_fwdir/$fw"
|
2024-06-21 18:12:31 +00:00
|
|
|
done < "$srcdir"/30-gpu-firmware.files
|
2024-06-22 20:27:36 +00:00
|
|
|
ath10k-fwencoder --create \
|
|
|
|
--features=wowlan,no-nwifi-decap-4addr-padding,allows-mesh-bcast,mgmt-tx-by-ref,non-bmi,single-chan-info-per-channel \
|
|
|
|
--set-wmi-op-version=tlv --set-htt-op-version=tlv \
|
|
|
|
--set-fw-api=5
|
|
|
|
install -Dm644 firmware-5.bin -t "$pkgdir/$_fwdir/ath10k/WCN3990/hw1.0/"
|
|
|
|
install -Dm644 ath10k/WCN3990/hw1.0/board-2.bin -t "$pkgdir/$_fwdir/ath10k/WCN3990/hw1.0/"
|
|
|
|
install -Dm644 qcom/a512_zap.elf "$pkgdir/$_fwdir/postmarketos/a512_zap.mbn"
|
2022-11-28 11:01:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
|
|
|
fd36819cabb028973015587e4193642e7c36b2321181a1c3dc7631fcfe51e7e736f4679665d4e4ad2eef8ddd4fe541a8a15e93189822702e23463a43023fe549 firmware-xiaomi-tulip-c8f750d4cdd8c5353c4aaa423f81774c63f87d27.tar.gz
|
2024-06-21 18:12:31 +00:00
|
|
|
4ec4f0da2d0d0aab4db5b212cdfffebc8dfa50bfc9863145a500a244fce50ab2eabbc0c24b9ab6ad6a5bdaeffeb9f61923b7967450778c3d3475a4a7ad69efe7 30-gpu-firmware.files
|
2022-11-28 11:01:17 +00:00
|
|
|
"
|