2022-01-22 12:44:03 +00:00
# Reference: <https://postmarketos.org/devicepkg>
2024-07-16 13:51:22 +00:00
# Maintainer: Jianhua Lu <lujianhua000@gmail.com>
2022-01-22 12:44:03 +00:00
pkgname=device-xiaomi-elish
2022-05-16 19:24:38 +00:00
pkgdesc="Xiaomi Mi Pad 5 Pro"
2024-07-16 13:51:22 +00:00
pkgver=2
2024-04-02 12:52:52 +00:00
pkgrel=0
2022-01-22 12:44:03 +00:00
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
2024-07-16 13:51:22 +00:00
bootmac
2022-07-04 11:49:21 +00:00
make-dynpart-mappings
2023-03-27 11:33:57 +00:00
mesa-vulkan-freedreno
2022-01-22 12:44:03 +00:00
mkbootimg
postmarketos-base
2023-03-27 11:33:57 +00:00
qbootctl
swclock-offset
2022-01-22 12:44:03 +00:00
"
makedepends="devicepkg-dev"
2023-03-27 11:33:57 +00:00
install="$pkgname.post-install $pkgname.post-upgrade"
2024-07-16 13:45:19 +00:00
source="
alsa-ucm-conf/elish.conf
alsa-ucm-conf/HiFi.conf
deviceinfo
modules-initfs
"
2022-01-22 12:44:03 +00:00
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
2024-07-16 13:45:19 +00:00
# device-specific alsa ucm conf
install -Dm644 "$srcdir/elish.conf" \
"$pkgdir/usr/share/alsa/ucm2/Xiaomi/elish/elish.conf"
install -Dm644 "$srcdir/HiFi.conf" \
"$pkgdir/usr/share/alsa/ucm2/Xiaomi/elish/HiFi.conf"
mkdir -p "$pkgdir/usr/share/alsa/ucm2/conf.d/sm8250"
ln -s ../../Xiaomi/elish/elish.conf \
"$pkgdir/usr/share/alsa/ucm2/conf.d/sm8250/Xiaomi Mi Pad 5 Pro.conf"
2022-01-22 12:44:03 +00:00
}
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
2023-03-28 18:29:07 +00:00
firmware-xiaomi-elish-cirrus
2023-03-07 06:03:22 +00:00
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
2023-03-27 11:33:57 +00:00
pd-mapper
tqftpserv
2022-05-16 19:24:38 +00:00
"
2023-03-27 11:33:57 +00:00
install="$subpkgname.post-install $subpkgname.post-upgrade"
2022-05-16 19:24:38 +00:00
mkdir "$subpkgdir"
}
2022-01-22 12:44:03 +00:00
sha512sums="
2024-07-16 13:45:19 +00:00
7b5def03dc5da28c7449719f0619f9d9ddbd988235b8591304ae4fea0989189d65ca1bc0d43664115f595137ba7896359b1b5f48fd6e350cac5d41ef9b1df869 elish.conf
ed9a509f70715fd6c6614ee5fddbdb0ed2aa69f4a2983af9dbec26bdeb18fe93e3d1a65e03c618550c61da1416c79eb9440fb1bcd4961f85059b27904c4395cc HiFi.conf
2024-07-17 00:11:48 +00:00
c8130d9a740437608c0ed56263ff5424e12f78ca71dd71c683fdcafe856b980fc14b492e964e177d06dcc4048466da6f29dd6f0dc85d021a0f963fdbf33e26c5 deviceinfo
2023-08-02 17:06:01 +00:00
08429bea885350e34c4d7f7aec02e440080a78db3ac10d8a757012ffa5dcafe93a12db24e37201d02cd423db9c33cf0bafcd0c03935dfa159a2e89ccafe93f3e modules-initfs
2022-01-22 12:44:03 +00:00
"