pmaports/device/testing/device-xiaomi-elish/APKBUILD
Pablo Correa Gómez ea93a6d07f
device/*: rebuild all devices to relocate deviceinfo (MR 4283)
[ci:ignore-count]
[ci:skip-build]: already built successfully in CI
2023-09-25 09:21:03 +02:00

72 lines
2.1 KiB
Text

# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-xiaomi-elish
pkgdesc="Xiaomi Mi Pad 5 Pro"
pkgver=0.7
pkgrel=2
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
postmarketos-update-kernel
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="
b1eae47e71f20658f716fe8873ed255a54f52f2102a57cbfeb3f42d2c4e40cc1a164035d7eaa3ebfa94ed75ef1362677de07035ce7c2f28c947e832e26e13d44 deviceinfo
08429bea885350e34c4d7f7aec02e440080a78db3ac10d8a757012ffa5dcafe93a12db24e37201d02cd423db9c33cf0bafcd0c03935dfa159a2e89ccafe93f3e modules-initfs
"