device-xiaomi-beryllium: add sensor support (MR 5099)
This commit is contained in:
parent
f547af68d8
commit
1eb794e124
5 changed files with 27 additions and 5 deletions
|
@ -0,0 +1,3 @@
|
||||||
|
# iio-sensor-proxy with libssc: accelerometer mount matrix
|
||||||
|
|
||||||
|
SUBSYSTEM=="misc", KERNEL=="fastrpc-*", ENV{ACCEL_MOUNT_MATRIX}+="-1, 0, 0; 0, -1, 0; 0, 0, -1"
|
|
@ -3,8 +3,8 @@
|
||||||
# Reference: <https://postmarketos.org/devicepkg>
|
# Reference: <https://postmarketos.org/devicepkg>
|
||||||
pkgname=device-xiaomi-beryllium
|
pkgname=device-xiaomi-beryllium
|
||||||
pkgdesc="Xiaomi Poco F1"
|
pkgdesc="Xiaomi Poco F1"
|
||||||
pkgver=10
|
pkgver=11
|
||||||
pkgrel=4
|
pkgrel=0
|
||||||
url="https://postmarketos.org"
|
url="https://postmarketos.org"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
arch="aarch64"
|
arch="aarch64"
|
||||||
|
@ -24,9 +24,11 @@ subpackages="
|
||||||
|
|
||||||
source="
|
source="
|
||||||
deviceinfo
|
deviceinfo
|
||||||
|
hexagonrpcd.confd
|
||||||
modules-initfs.ebbg
|
modules-initfs.ebbg
|
||||||
modules-initfs.tianma
|
modules-initfs.tianma
|
||||||
q6voiced.conf
|
q6voiced.conf
|
||||||
|
81-libssc-xiaomi-beryllium.rules
|
||||||
"
|
"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
@ -38,12 +40,22 @@ package() {
|
||||||
}
|
}
|
||||||
|
|
||||||
nonfree_firmware() {
|
nonfree_firmware() {
|
||||||
pkgdesc="GPU, venus, modem firmware"
|
pkgdesc="GPU, venus, modem and sensor firmware"
|
||||||
depends="firmware-xiaomi-beryllium soc-qcom-sdm845-nonfree-firmware
|
install="$subpkgname.post-install $subpkgname.post-upgrade"
|
||||||
soc-qcom-sdm845-modem"
|
depends="
|
||||||
|
firmware-xiaomi-beryllium
|
||||||
|
soc-qcom-sdm845-nonfree-firmware
|
||||||
|
soc-qcom-sdm845-modem
|
||||||
|
hexagonrpcd
|
||||||
|
"
|
||||||
|
replaces="hexagonrpcd-openrc"
|
||||||
mkdir "$subpkgdir"
|
mkdir "$subpkgdir"
|
||||||
|
|
||||||
install -Dm644 q6voiced.conf "$subpkgdir"/etc/conf.d/q6voiced
|
install -Dm644 q6voiced.conf "$subpkgdir"/etc/conf.d/q6voiced
|
||||||
|
install -Dm644 81-libssc-xiaomi-beryllium.rules \
|
||||||
|
"$subpkgdir"/etc/udev/rules.d/81-libssc-xiaomi-beryllium.rules
|
||||||
|
|
||||||
|
install -Dm644 "$srcdir"/hexagonrpcd.confd "$subpkgdir"/etc/conf.d/hexagonrpcd-sdsp
|
||||||
}
|
}
|
||||||
|
|
||||||
kernel_tianma() {
|
kernel_tianma() {
|
||||||
|
@ -60,7 +72,9 @@ kernel_ebbg() {
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
3d6247e3d1d045fea5cec78dd2a41b4cf81a84fa27550e9502d44152fbfa8246302d5ecb52837a05652a599a6e11dd87acf656b2235dff9dd0717cedb7afd8ab deviceinfo
|
3d6247e3d1d045fea5cec78dd2a41b4cf81a84fa27550e9502d44152fbfa8246302d5ecb52837a05652a599a6e11dd87acf656b2235dff9dd0717cedb7afd8ab deviceinfo
|
||||||
|
52079045a0c1f48628d891bf8867f5c1802152fce8e2c4bd787630f1f5e4c9b386bfc373e464cb053688350ac678dbc3c407a76a31a1ae700ca67764d0d384f1 hexagonrpcd.confd
|
||||||
cab76675b9c48eb1ce0691b31667d17ee73ecf21439a7f7c9c2ba96344e3bf4ad713ebc685298d6e32ad589ba26f429cd6b0d200338b50d136ad1a29758e4214 modules-initfs.ebbg
|
cab76675b9c48eb1ce0691b31667d17ee73ecf21439a7f7c9c2ba96344e3bf4ad713ebc685298d6e32ad589ba26f429cd6b0d200338b50d136ad1a29758e4214 modules-initfs.ebbg
|
||||||
175a7d859956a029b91a1105b93c4113b07ab5cfe932294dd369808059ed03471625f64ce90e5146a65c0bb26417470d8f7c02e48dfacf2d016ce5b2c28cee76 modules-initfs.tianma
|
175a7d859956a029b91a1105b93c4113b07ab5cfe932294dd369808059ed03471625f64ce90e5146a65c0bb26417470d8f7c02e48dfacf2d016ce5b2c28cee76 modules-initfs.tianma
|
||||||
3a4a9322839d4b3ef9d79668a37840a9f444954759ae3c512e694051d2f9a2573db42ad6c4c1a5c75eeb861232a27ba1a8cef9b503decd54ead25a96e3dd6f98 q6voiced.conf
|
3a4a9322839d4b3ef9d79668a37840a9f444954759ae3c512e694051d2f9a2573db42ad6c4c1a5c75eeb861232a27ba1a8cef9b503decd54ead25a96e3dd6f98 q6voiced.conf
|
||||||
|
2c16ba75e0077b2b1eaefa4c73b287475505a1aeb291ec29316d41cc094277320f9d2aaabfd91eb1dc0f488ab2d61a94faef16e7afe0f1e226779113761b9a37 81-libssc-xiaomi-beryllium.rules
|
||||||
"
|
"
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
rc-update add hexagonrpcd-sdsp
|
|
@ -0,0 +1 @@
|
||||||
|
device-xiaomi-beryllium-nonfree-firmware.post-install
|
|
@ -0,0 +1,2 @@
|
||||||
|
# Xiaomi Poco F1 specific hexagonrpcd firmware directory
|
||||||
|
hexagonrpcd_fw_dir="/usr/share/qcom/sdm845/Xiaomi/beryllium"
|
Loading…
Reference in a new issue