71 lines
2 KiB
Text
71 lines
2 KiB
Text
# Reference: <https://postmarketos.org/devicepkg>
|
|
pkgname=device-xiaomi-elish
|
|
pkgdesc="Xiaomi Mi Pad 5 Pro"
|
|
pkgver=1
|
|
pkgrel=0
|
|
url="https://postmarketos.org"
|
|
license="MIT"
|
|
arch="aarch64"
|
|
options="!check !archcheck"
|
|
depends="
|
|
alsa-ucm-conf-xiaomi-elish
|
|
make-dynpart-mappings
|
|
mesa-vulkan-freedreno
|
|
mkbootimg
|
|
postmarketos-base
|
|
qbootctl
|
|
swclock-offset
|
|
"
|
|
makedepends="devicepkg-dev"
|
|
install="$pkgname.post-install $pkgname.post-upgrade"
|
|
source="deviceinfo modules-initfs"
|
|
|
|
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-cirrus
|
|
firmware-xiaomi-elish-slpi
|
|
firmware-xiaomi-elish-touchscreen
|
|
firmware-xiaomi-elish-venus
|
|
linux-firmware-ath11k
|
|
linux-firmware-qca
|
|
pd-mapper
|
|
tqftpserv
|
|
"
|
|
install="$subpkgname.post-install $subpkgname.post-upgrade"
|
|
mkdir "$subpkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
767b9347ef08e8dad66c9f9afa282e53fbc7eafa240d49a18de4bdb3cf4b586f236cb0cb5709ff83ac2db0ccfc2e63c657fb7b746c1abf59d707b22e4d4267ed deviceinfo
|
|
08429bea885350e34c4d7f7aec02e440080a78db3ac10d8a757012ffa5dcafe93a12db24e37201d02cd423db9c33cf0bafcd0c03935dfa159a2e89ccafe93f3e modules-initfs
|
|
"
|