2022-12-10 10:18:13 +00:00
|
|
|
pkgname=firmware-xiaomi-surya
|
2023-10-29 18:32:03 +00:00
|
|
|
pkgver=1.1
|
2024-03-02 02:59:56 +00:00
|
|
|
pkgrel=1
|
2022-12-10 10:18:13 +00:00
|
|
|
pkgdesc="Firmware for Xiaomi POCO X3 NFC"
|
|
|
|
subpackages="
|
|
|
|
$pkgname-adsp
|
|
|
|
$pkgname-cdsp
|
2023-11-10 16:29:19 +00:00
|
|
|
$pkgname-initramfs
|
2022-12-10 10:18:13 +00:00
|
|
|
$pkgname-ipa
|
|
|
|
$pkgname-modem
|
|
|
|
$pkgname-touchscreen
|
|
|
|
$pkgname-wlan
|
2024-03-02 02:59:56 +00:00
|
|
|
$pkgname-venus
|
2022-12-10 10:18:13 +00:00
|
|
|
"
|
|
|
|
url="https://github.com/sm7150-mainline/firmware-xiaomi-surya"
|
|
|
|
arch="aarch64"
|
|
|
|
license="proprietary"
|
|
|
|
options="!check !strip !archcheck !tracedeps pmb:cross-native"
|
2023-10-29 18:32:03 +00:00
|
|
|
_commit="3d76e775502966ac4aa9d6e563a71d7442152f1b"
|
2023-11-10 16:29:19 +00:00
|
|
|
source="
|
|
|
|
$pkgname-$_commit.tar.gz::$url/archive/$_commit/$pkgname-$_commit.tar.gz
|
|
|
|
30-touchscreen-firmware.files
|
|
|
|
"
|
2022-12-10 10:18:13 +00:00
|
|
|
builddir="$srcdir/$pkgname-$_commit"
|
|
|
|
|
|
|
|
package() {
|
|
|
|
# parent package is empty
|
|
|
|
mkdir -p "$pkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
adsp() {
|
|
|
|
pkgdesc="Xiaomi POCO X3 NFC adsp firmware"
|
|
|
|
|
|
|
|
install -Dm644 "$builddir"/adsp* -t \
|
|
|
|
"$subpkgdir/lib/firmware/qcom/sm7150/surya"
|
|
|
|
}
|
|
|
|
|
|
|
|
cdsp() {
|
|
|
|
pkgdesc="Xiaomi POCO X3 NFC cdsp firmware"
|
|
|
|
|
|
|
|
install -Dm644 "$builddir"/cdsp* -t \
|
|
|
|
"$subpkgdir/lib/firmware/qcom/sm7150/surya"
|
|
|
|
}
|
|
|
|
|
2023-11-10 16:29:19 +00:00
|
|
|
initramfs() {
|
|
|
|
pkgdesc="Xiaomi POCO X3 NFC firmware to be included in the initramfs"
|
|
|
|
|
|
|
|
install -Dm644 "$srcdir/30-touchscreen-firmware.files" \
|
|
|
|
"$subpkgdir/usr/share/mkinitfs/files/30-touchscreen-firmware.files"
|
|
|
|
}
|
|
|
|
|
2022-12-10 10:18:13 +00:00
|
|
|
ipa() {
|
|
|
|
pkgdesc="Xiaomi POCO X3 NFC ipa firmware"
|
|
|
|
|
|
|
|
install -Dm644 "$builddir"/ipa_fws.* -t \
|
|
|
|
"$subpkgdir/lib/firmware/qcom/sm7150/surya"
|
|
|
|
}
|
|
|
|
|
|
|
|
modem() {
|
|
|
|
pkgdesc="Xiaomi POCO X3 NFC modem firmware"
|
|
|
|
|
|
|
|
# cp because of the modem_pr directory
|
|
|
|
mkdir -p "$subpkgdir/lib/firmware/qcom/sm7150/surya"
|
|
|
|
cp -r "$builddir"/modem* \
|
|
|
|
"$subpkgdir/lib/firmware/qcom/sm7150/surya"
|
|
|
|
find "$subpkgdir/lib/firmware/qcom/sm7150/surya" \
|
|
|
|
-type f -exec chmod 0644 {} \;
|
|
|
|
}
|
|
|
|
|
|
|
|
touchscreen() {
|
|
|
|
pkgdesc="Xiaomi POCO X3 NFC touchscreen firmware"
|
|
|
|
|
2023-10-29 18:32:03 +00:00
|
|
|
install -Dm644 "$builddir"/novatek_ts_*_fw.bin -t \
|
2022-12-10 10:18:13 +00:00
|
|
|
"$subpkgdir/lib/firmware"
|
|
|
|
}
|
|
|
|
|
2023-10-29 18:32:03 +00:00
|
|
|
venus() {
|
|
|
|
pkgdesc="Xiaomi POCO X3 NFC venus firmware"
|
|
|
|
|
|
|
|
install -Dm644 "$builddir"/venus.mbn -t \
|
|
|
|
"$subpkgdir/lib/firmware/qcom/sm7150/surya"
|
|
|
|
}
|
|
|
|
|
2022-12-10 10:18:13 +00:00
|
|
|
wlan() {
|
|
|
|
pkgdesc="Xiaomi POCO X3 NFC wlan firmware"
|
|
|
|
|
|
|
|
install -Dm644 "$builddir"/wlanmdsp.mbn -t \
|
|
|
|
"$subpkgdir/lib/firmware/qcom/sm7150/surya"
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2023-10-29 18:32:03 +00:00
|
|
|
769bcbabc12919f2fd8b9f6c4f23a236ba1835eb4cedef9072652321ee145995eff4f8b7b34a7875de9d26b9cdd9e7ccbcc1063cbc8eeb2b3ca3fbe3d0affad5 firmware-xiaomi-surya-3d76e775502966ac4aa9d6e563a71d7442152f1b.tar.gz
|
2023-11-10 16:29:19 +00:00
|
|
|
da17c49b62a6320a868e34c5ebbbfdecbf80eed714e8a87daacfc5eb8a1d3dd171e13af0d1f7a8ccb6ebf0a6d859a1c3b8173bbe791ce78fadd7b6d1579ec472 30-touchscreen-firmware.files
|
2022-12-10 10:18:13 +00:00
|
|
|
"
|