2022-01-22 12:44:03 +00:00
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-xiaomi-elish
2022-05-16 19:24:38 +00:00
pkgdesc="Xiaomi Mi Pad 5 Pro"
2023-03-07 06:03:22 +00:00
pkgver=0.5
pkgrel=0
2022-01-22 12:44:03 +00:00
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
2022-07-04 11:49:21 +00:00
make-dynpart-mappings
2022-01-22 12:44:03 +00:00
mkbootimg
postmarketos-base
"
makedepends="devicepkg-dev"
source="deviceinfo"
2022-05-16 19:24:38 +00:00
subpackages="
2023-03-27 11:16:38 +00:00
$pkgname-kernel-boe:kernel_boe
$pkgname-kernel-csot:kernel_csot
2022-05-16 19:24:38 +00:00
$pkgname-nonfree-firmware:nonfree_firmware
"
2022-01-22 12:44:03 +00:00
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
2023-03-27 11:16:38 +00:00
kernel_boe() {
pkgdesc="BOE Panel. To know which panel your device use and the status of the port, Visit the Mi Pad 5 Pro wiki page: https://wiki.postmarketos.org/wiki/Xiaomi_Mi_Pad_5_Pro_(xiaomi-elish)"
depends="linux-postmarketos-qcom-sm8250"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
kernel_csot() {
pkgdesc="CSOT Panel. To know which panel your device use and the status of the port, Visit the Mi Pad 5 Pro wiki page: https://wiki.postmarketos.org/wiki/Xiaomi_Mi_Pad_5_Pro_(xiaomi-elish)"
depends="linux-postmarketos-qcom-sm8250"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
2022-05-16 19:24:38 +00:00
nonfree_firmware() {
pkgdesc="Firmware for GPU, WiFi, etc."
depends="
firmware-xiaomi-elish-adreno
2023-03-07 06:03:22 +00:00
firmware-xiaomi-elish-adsp
firmware-xiaomi-elish-cdsp
firmware-xiaomi-elish-slpi
2022-08-21 05:36:15 +00:00
firmware-xiaomi-elish-touchscreen
2022-07-04 11:49:21 +00:00
firmware-xiaomi-elish-venus
linux-firmware-ath11k
2023-03-07 06:03:22 +00:00
linux-firmware-qca
2022-05-16 19:24:38 +00:00
"
mkdir "$subpkgdir"
}
2022-01-22 12:44:03 +00:00
sha512sums="
2023-03-27 11:16:38 +00:00
09e53e9a0052e37f06db9a117bc5760a3e1da700f80721a738f1d0ef8c2e6e3348721280f611ef238cc1f45b0651bf577a1d91f8b2341b75c2034751a8267bcd deviceinfo
2022-01-22 12:44:03 +00:00
"