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

61 lines
1.6 KiB
Text

# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-xiaomi-elish
pkgdesc="Xiaomi Mi Pad 5 Pro"
pkgver=0.5
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
make-dynpart-mappings
mkbootimg
postmarketos-base
"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="
$pkgname-kernel-boe:kernel_boe
$pkgname-kernel-csot:kernel_csot
$pkgname-nonfree-firmware:nonfree_firmware
"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
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
}
nonfree_firmware() {
pkgdesc="Firmware for GPU, WiFi, etc."
depends="
firmware-xiaomi-elish-adreno
firmware-xiaomi-elish-adsp
firmware-xiaomi-elish-cdsp
firmware-xiaomi-elish-slpi
firmware-xiaomi-elish-touchscreen
firmware-xiaomi-elish-venus
linux-firmware-ath11k
linux-firmware-qca
"
mkdir "$subpkgdir"
}
sha512sums="
09e53e9a0052e37f06db9a117bc5760a3e1da700f80721a738f1d0ef8c2e6e3348721280f611ef238cc1f45b0651bf577a1d91f8b2341b75c2034751a8267bcd deviceinfo
"