pine64-dontbeevil: add sensorfw configs (MR 2518)

sensorfw is used by Waydroid (via waydroid-sensord) and the Glacier UI
for rotation and other sensors

[ci:skip-build] already built successfully in CI
This commit is contained in:
Bart Ribbers 2021-09-14 10:54:40 +02:00 committed by Clayton Craft
parent f366f7cfb3
commit 2c035fc5d8
No known key found for this signature in database
GPG key ID: 4A4CED6D7EDF950A
3 changed files with 58 additions and 6 deletions

View file

@ -1,28 +1,31 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-pine64-dontbeevil
pkgdesc="PINE64 PinePhone Don't be evil devkit"
pkgver=0.2
pkgver=0.3
pkgrel=0
pkgdesc="PINE64 PinePhone Don't be evil devkit"
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
subpackages="
$pkgname-kernel-longts:kernel_longts
$pkgname-kernel-shortts:kernel_shortts
$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-sensorfw
$pkgname-weston
$pkgname-x11
$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-kernel-shortts:kernel_shortts
$pkgname-kernel-longts:kernel_longts
"
depends="postmarketos-base u-boot-sunxi u-boot-tools mesa-dri-gallium ofono"
makedepends="devicepkg-dev"
install="$pkgname.post-install"
source="
deviceinfo
sensorfw/90-dontbeevil.conf
sensorfw/primaryuse.conf
uboot-script.cmd
weston.ini
xorg.conf
"
"
build() {
devicepkg_build $startdir $pkgname
@ -70,8 +73,20 @@ kernel_longts() {
mkdir "$subpkgdir"
}
sensorfw() {
install_if="$pkgname=$pkgver-r$pkgrel sensorfw"
install -Dm644 -t "$subpkgdir"/etc/sensorfw \
"$srcdir"/primaryuse.conf
install -Dm644 -t "$subpkgdir"/etc/sensorfw/sensord.conf.d \
"$srcdir"/90-dontbeevil.conf
}
sha512sums="
85dde682b5fc2975595d9a31c2054c8c375cc77fa4f6d7f83222994c9deb93d53436c1e8df8efe609e2d75d16e05077d30f549efce3c354e47a5605d3c59bc48 deviceinfo
967e3a43c7e91ed37fc932a7c580cd168ca11d8ec7f60ff60ece7f286e5144f27faead95162fa7d571a2317ed0da970fd86f5bc9ed0235a25c0be9182d42d64d 90-dontbeevil.conf
8e362f48fc5db58dc37d035f80f5ab0b09a20c82e6859e9662affdc192e2aa0bc7a259a9b0c63db330b3873d8b1f22af3f9193a0b7d79068354d1a788391376c primaryuse.conf
7d46b92a9a831ead6c1919b95ec4930242b35c2d8e2ce05fcb70dcd8c77c61d840d78738c5d82f6f4d56a1e676237243a795a728e76f38c27a74ed6dcb44279a uboot-script.cmd
c4c57d1627dd451213e1ef20d89de9266cd4edcc2d33a69aa9a1f13e16d9f9742036b69dc149fd910d7213f7525c41eb79576d4457bc85cc96eba0d986382d27 weston.ini
f86ef35730b89bcc8160c08db7a7fcd0970adf60c0b77af68bac397de49c0d1783e6b8db1762380c9bf874aff2d030c6f44ecb75c803d69e79ede11376409369 xorg.conf

View file

@ -0,0 +1,30 @@
[accelerometer]
input_match=mpu6050
intervals = "200=>2000"
default_interval=500
transformation_matrix = "0,1,0,-1,0,0,0,0,-1"
[als]
input_match=stk3310
intervals = "200=>2000"
default_interval=500
[gyroscope]
input_match=mpu6050
intervals = "200=>2000"
default_interval=500
transformation_matrix = "0,1,0,-1,0,0,0,0,-1"
[magnetometer]
input_match=lis3mdl
intervals = "200=>2000"
default_interval=500
[lis3mdl]
scale = 1.0
[proximity]
input_match=stk3310
intervals = "200=>2000"
default_interval=500
threshold=19

View file

@ -0,0 +1,7 @@
[plugins]
accelerometeradaptor = iiosensorsadaptor
orientationadaptor = iiosensorsadaptor
alsadaptor = iiosensorsadaptor
magnetometeradaptor = iiosensorsadaptor
gyroscopeadaptor = iiosensorsadaptor
proximityadaptor = iiosensorsadaptor