device-fairphone-fp5: add sensor support (MR 5313)
Add the required dependencies and config for both hexagonrpcd and libssc so that sensors start working. [ci:skip-build]: already built successfully in CI
This commit is contained in:
parent
ba6d8a86ce
commit
240365f5a7
5 changed files with 24 additions and 2 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"
|
|
@ -2,8 +2,8 @@
|
||||||
# Maintainer: Luca Weiss <luca@lucaweiss.eu>
|
# Maintainer: Luca Weiss <luca@lucaweiss.eu>
|
||||||
pkgname=device-fairphone-fp5
|
pkgname=device-fairphone-fp5
|
||||||
pkgdesc="Fairphone 5"
|
pkgdesc="Fairphone 5"
|
||||||
pkgver=3
|
pkgver=4
|
||||||
pkgrel=4
|
pkgrel=0
|
||||||
url="https://postmarketos.org"
|
url="https://postmarketos.org"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
arch="aarch64"
|
arch="aarch64"
|
||||||
|
@ -13,11 +13,14 @@ depends="
|
||||||
firmware-fairphone-fp5-adsp
|
firmware-fairphone-fp5-adsp
|
||||||
firmware-fairphone-fp5-bluetooth
|
firmware-fairphone-fp5-bluetooth
|
||||||
firmware-fairphone-fp5-cdsp
|
firmware-fairphone-fp5-cdsp
|
||||||
|
firmware-fairphone-fp5-hexagonfs
|
||||||
firmware-fairphone-fp5-ipa
|
firmware-fairphone-fp5-ipa
|
||||||
firmware-fairphone-fp5-modem
|
firmware-fairphone-fp5-modem
|
||||||
firmware-fairphone-fp5-venus
|
firmware-fairphone-fp5-venus
|
||||||
firmware-fairphone-fp5-wpss
|
firmware-fairphone-fp5-wpss
|
||||||
firmware-qcom-adreno-a660
|
firmware-qcom-adreno-a660
|
||||||
|
hexagonrpcd
|
||||||
|
hexagonrpcd-openrc
|
||||||
linux-postmarketos-qcom-sc7280
|
linux-postmarketos-qcom-sc7280
|
||||||
make-dynpart-mappings
|
make-dynpart-mappings
|
||||||
mkbootimg
|
mkbootimg
|
||||||
|
@ -26,8 +29,12 @@ depends="
|
||||||
soc-qcom-sc7280-qbootctl
|
soc-qcom-sc7280-qbootctl
|
||||||
"
|
"
|
||||||
makedepends="devicepkg-dev"
|
makedepends="devicepkg-dev"
|
||||||
|
replaces="hexagonrpcd-openrc"
|
||||||
|
install="$pkgname.post-install $pkgname.post-upgrade"
|
||||||
source="
|
source="
|
||||||
|
81-libssc-fairphone-fp5.rules
|
||||||
deviceinfo
|
deviceinfo
|
||||||
|
hexagonrpcd.confd
|
||||||
modules-initfs
|
modules-initfs
|
||||||
ucm/HiFi.conf
|
ucm/HiFi.conf
|
||||||
ucm/fp5.conf
|
ucm/fp5.conf
|
||||||
|
@ -39,6 +46,11 @@ build() {
|
||||||
package() {
|
package() {
|
||||||
devicepkg_package $startdir $pkgname
|
devicepkg_package $startdir $pkgname
|
||||||
|
|
||||||
|
install -Dm644 "$srcdir"/81-libssc-fairphone-fp5.rules \
|
||||||
|
"$pkgdir"/usr/lib/udev/rules.d/81-libssc-fairphone-fp5.rules
|
||||||
|
install -Dm644 "$srcdir"/hexagonrpcd.confd \
|
||||||
|
"$pkgdir"/etc/conf.d/hexagonrpcd-adsp-sensorspd
|
||||||
|
|
||||||
# ALSA Use Case Manager configuration
|
# ALSA Use Case Manager configuration
|
||||||
install -Dm644 -t "$pkgdir"/usr/share/alsa/ucm2/Fairphone/fp5 \
|
install -Dm644 -t "$pkgdir"/usr/share/alsa/ucm2/Fairphone/fp5 \
|
||||||
"$srcdir"/HiFi.conf \
|
"$srcdir"/HiFi.conf \
|
||||||
|
@ -49,7 +61,9 @@ package() {
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
|
2c16ba75e0077b2b1eaefa4c73b287475505a1aeb291ec29316d41cc094277320f9d2aaabfd91eb1dc0f488ab2d61a94faef16e7afe0f1e226779113761b9a37 81-libssc-fairphone-fp5.rules
|
||||||
3062dc927b0521512782b34b0a12739aa455794bc49c25d423cf584b6f264f2cef8629bcc70b194d0e58712a21f64aa2c3b61336a904fe9173991f42b9c94f89 deviceinfo
|
3062dc927b0521512782b34b0a12739aa455794bc49c25d423cf584b6f264f2cef8629bcc70b194d0e58712a21f64aa2c3b61336a904fe9173991f42b9c94f89 deviceinfo
|
||||||
|
206c7b2616b61c1f7630933d036875985e78cfc23e6a175795b328d251684abeceb06373da4ae211f6f7dd7e45fb3b3238bb8a4b5698906be626d8d918adf5b3 hexagonrpcd.confd
|
||||||
165ae7e1dbb5fb709e2f7b457dafa5df5b755c1199ea0f011b7e519ab49bc676ddeff92a3152629125e66d3dbbe5a70384364191000a1fdf860977e2ed43de54 modules-initfs
|
165ae7e1dbb5fb709e2f7b457dafa5df5b755c1199ea0f011b7e519ab49bc676ddeff92a3152629125e66d3dbbe5a70384364191000a1fdf860977e2ed43de54 modules-initfs
|
||||||
f39b6e5de6d9bfefc841e887b92bb5a92d02d1de46fd376ca83871b7a9cf0da5297d7201457b2bb12c302887bb0a9d328604ff910ebda8022ac71ad120b11a3c HiFi.conf
|
f39b6e5de6d9bfefc841e887b92bb5a92d02d1de46fd376ca83871b7a9cf0da5297d7201457b2bb12c302887bb0a9d328604ff910ebda8022ac71ad120b11a3c HiFi.conf
|
||||||
fb510ca806fb76174576218f5cb4d799e05757b3e351eec32b1406bcf22540cf27888f30e3737f016d43e3c38dea8d7418c194e12c9879df9c756d4d80ceae99 fp5.conf
|
fb510ca806fb76174576218f5cb4d799e05757b3e351eec32b1406bcf22540cf27888f30e3737f016d43e3c38dea8d7418c194e12c9879df9c756d4d80ceae99 fp5.conf
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
rc-update add hexagonrpcd-adsp-sensorspd default
|
|
@ -0,0 +1 @@
|
||||||
|
device-fairphone-fp5.post-install
|
2
device/testing/device-fairphone-fp5/hexagonrpcd.confd
Normal file
2
device/testing/device-fairphone-fp5/hexagonrpcd.confd
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# Fairphone 5 specific hexagonrpcd firmware directory
|
||||||
|
hexagonrpcd_fw_dir="/usr/share/qcom/qcm6490/Fairphone/fairphone5"
|
Loading…
Reference in a new issue