2022-10-08 21:37:54 +00:00
# Maintainer: Joel Selvaraj <joelselvaraj.oss@gmail.com>
2020-04-13 19:56:53 +00:00
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-xiaomi-beryllium
pkgdesc="Xiaomi Poco F1"
2022-10-08 21:37:54 +00:00
pkgver=8
2022-06-06 20:19:01 +00:00
pkgrel=0
2020-04-13 19:56:53 +00:00
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
2021-06-13 09:27:11 +00:00
depends="
postmarketos-base
mkbootimg
soc-qcom-sdm845
soc-qcom-sdm845-ucm
postmarketos-update-kernel
"
2020-04-13 19:56:53 +00:00
makedepends="devicepkg-dev"
subpackages="
$pkgname-nonfree-firmware:nonfree_firmware
2021-02-17 10:10:33 +00:00
$pkgname-kernel-tianma:kernel_tianma
2021-05-07 09:54:49 +00:00
$pkgname-kernel-ebbg:kernel_ebbg
2021-02-17 10:10:33 +00:00
$pkgname-phosh
2020-04-13 19:56:53 +00:00
"
2021-02-17 10:10:33 +00:00
source="
deviceinfo
2022-04-03 09:04:48 +00:00
phoc.ini
2022-03-17 07:38:52 +00:00
q6voiced.conf
2021-02-17 10:10:33 +00:00
"
2020-04-13 19:56:53 +00:00
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
nonfree_firmware() {
pkgdesc="GPU, venus, modem firmware"
2022-03-17 07:38:52 +00:00
depends="firmware-xiaomi-beryllium soc-qcom-sdm845-nonfree-firmware"
2020-04-13 19:56:53 +00:00
mkdir "$subpkgdir"
2022-03-17 07:38:52 +00:00
install -Dm644 q6voiced.conf "$subpkgdir"/etc/conf.d/q6voiced
2020-04-13 19:56:53 +00:00
}
2021-02-17 10:10:33 +00:00
kernel_tianma() {
2021-05-07 09:54:49 +00:00
pkgdesc="Tianma Panel. To know which panel your device use and the status of the port, Visit the Poco F1 wiki page: https://wiki.postmarketos.org/wiki/Xiaomi_Poco_F1_(xiaomi-beryllium)"
depends="linux-postmarketos-qcom-sdm845"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
kernel_ebbg() {
pkgdesc="EBBG Panel. To know which panel your device use and the status of the port, Visit the Poco F1 wiki page: https://wiki.postmarketos.org/wiki/Xiaomi_Poco_F1_(xiaomi-beryllium)"
2021-02-17 10:10:33 +00:00
depends="linux-postmarketos-qcom-sdm845"
2020-04-13 19:56:53 +00:00
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
2021-02-17 10:10:33 +00:00
phosh() {
install_if="$pkgname=$pkgver-r$pkgrel phosh"
2022-04-03 09:04:48 +00:00
install -Dm644 "$srcdir"/phoc.ini \
"$subpkgdir"/etc/phosh/phoc.ini
2020-04-13 19:56:53 +00:00
}
2021-05-07 09:54:49 +00:00
sha512sums="
2022-06-06 20:19:01 +00:00
399e430a7340755c39680e436141dc141b38669791664bfb6d902bf4994516305fdf3e0e088717f60dc24faf64e0993c8695572f1afb7875a46548f494fdb54d deviceinfo
2022-04-03 09:04:48 +00:00
e2e417169345c86a5dd34ac0afac4b2b983a755f4c7ba5698c385a01f96b9bd2c3ace1ce5a0569c121675e8b87e88e1cf5c648e995d9c50cba66e52bbc83753c phoc.ini
2022-10-08 21:37:54 +00:00
3a4a9322839d4b3ef9d79668a37840a9f444954759ae3c512e694051d2f9a2573db42ad6c4c1a5c75eeb861232a27ba1a8cef9b503decd54ead25a96e3dd6f98 q6voiced.conf
2021-05-07 09:54:49 +00:00
"