diff options
author | Scott Murray <scott.murray@konsulko.com> | 2022-11-23 15:33:04 -0500 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2022-12-14 16:28:05 +0000 |
commit | 7568ba62fae0bc7a697c29f46d3175e684056b6c (patch) | |
tree | 1c2f50ee31d403c3bae42892cad9539c0d3058e4 /recipes-core/udev/output-udev-conf_1.0.bb | |
parent | 7aeccbeaf418826795f7f1be4715d857628f8982 (diff) |
output-udev-conf: add recipe
Add recipe to install udev rules to force all input devices to be
associated with the HDMI-A-1 output. The intended use is with the
KVM host image to ensure input devices are matched to the IVI
guest VM. Also fixed the RDEPENDS for the other udev rule recipes
to depend on udev specifically instead of systemd.
Bug-AGL: SPEC-4618
Change-Id: Ic2efe01f7aed85f89dbda3cb958332ed5db799a1
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
(cherry picked from commit 46a4e4e4f43625686e73db8523bbfc9abaed558f)
Diffstat (limited to 'recipes-core/udev/output-udev-conf_1.0.bb')
-rw-r--r-- | recipes-core/udev/output-udev-conf_1.0.bb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/recipes-core/udev/output-udev-conf_1.0.bb b/recipes-core/udev/output-udev-conf_1.0.bb new file mode 100644 index 000000000..c4e05ad02 --- /dev/null +++ b/recipes-core/udev/output-udev-conf_1.0.bb @@ -0,0 +1,18 @@ +SUMMARY = "Input device output assignment udev configuration" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" + +SRC_URI = "file://91-output.rules" + +do_compile[noexec] = "1" + +do_install() { + if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then + install -d ${D}${sysconfdir}/udev/rules.d + install -m 0644 ${WORKDIR}/91-output.rules ${D}${sysconfdir}/udev/rules.d/ + fi +} + +FILES:${PN} += "${systemd_system_unitdir}" + +RDEPENDS:${PN} += "udev" |