2020-04-13 19:56:53 +00:00
# Maintainer: Venji10 <bennisteinir@gmail.com>
2021-02-17 10:10:33 +00:00
# Co-Maintainer: Joel Selvaraj <jo@jsfamily.in>
2020-04-13 19:56:53 +00:00
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-xiaomi-beryllium
pkgdesc="Xiaomi Poco F1"
2022-05-10 14:46:23 +00:00
pkgver=6
2022-06-02 08:46:34 +00:00
pkgrel=1
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-02 08:46:34 +00:00
e7ae5136aab2accbf4f15c0a52b5e05bbb254541625200091794e7cfb7d700502818ed51071e0b7529a0bd1de530940f5999342ace404a3115d5c05e6edb681e deviceinfo
2022-04-03 09:04:48 +00:00
e2e417169345c86a5dd34ac0afac4b2b983a755f4c7ba5698c385a01f96b9bd2c3ace1ce5a0569c121675e8b87e88e1cf5c648e995d9c50cba66e52bbc83753c phoc.ini
2022-03-17 07:38:52 +00:00
7f599f086dba97ac39ce98798969bc8e9c26dd3b062bb8f95852182df52814b70d49b701e27b43abeb3639b16ba053e416c14cf75e0bf4a9f2fe7c01fb0ac41c q6voiced.conf
2021-05-07 09:54:49 +00:00
"