eudev/rules/Makefile.am
Bastien Nocera c61e6c912b udev: Add rules for accelerometer orientation quirks
This commit adds a rules file to extract the properties from hwdb
to set on i2c IIO devices. This is used to set the ACCEL_MOUNT_MATRIX
property on IIO devices, to be consumed by iio-sensor-proxy or
equivalent daemon.

The hwdb file contains documentation on how to write quirks. Note
however that mount information is usually exported in:
- the device-tree for ARM devices
- the ACPI DSDT for Intel-compatible devices
but currently not extracted by the kernel.

Also note that some devices have the framebuffer rotation that changes
between the bootloader and the main system, which might mean that the
accelerometer is then wrongly oriented. This is a missing feature in the
i915 kernel driver: https://bugs.freedesktop.org/show_bug.cgi?id=94894
which needs to be fixed, and won't require quirks.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-12-11 10:55:12 -05:00

39 lines
736 B
Makefile

ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
dist_udevrules_DATA = \
50-udev-default.rules \
60-block.rules \
60-cdrom_id.rules \
60-drm.rules \
60-evdev.rules \
60-persistent-alsa.rules \
60-persistent-input.rules \
60-persistent-storage-tape.rules \
60-persistent-v4l.rules \
60-sensor.rules \
60-serial.rules \
64-btrfs.rules \
70-mouse.rules \
70-touchpad.rules \
75-net-description.rules \
75-probe_mtd.rules \
78-sound-card.rules
if !ENABLE_RULE_GENERATOR
dist_udevrules_DATA += \
80-net-name-slot.rules
endif
if HAVE_BLKID
dist_udevrules_DATA += \
60-persistent-storage.rules
endif
if HAVE_KMOD
dist_udevrules_DATA += \
80-drivers.rules
endif
install-data-local:
$(MKDIR_P) $(DESTDIR)$(udevconfdir)/rules.d