aboutsummaryrefslogtreecommitdiffstats
path: root/meta-agl-bsp/meta-rcar-gen3/recipes-kernel/kernel-module-uvcs
diff options
context:
space:
mode:
authorRonan Le Martret <ronan.lemartret@iot.bzh>2022-06-14 12:15:29 +0200
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2022-06-17 10:46:36 +0000
commit26114b6718fa45b38ae921b58981d4aa2510b571 (patch)
treec8faac77e98375a0b0f61a22ecaf62427977faf2 /meta-agl-bsp/meta-rcar-gen3/recipes-kernel/kernel-module-uvcs
parent2eaaa2da155e0d7e3ceb19a855eb949370cdc733 (diff)
[RCAR] Fix video stream for user "agl-driver"
* Remove RPROVIDES:${PN} "kernel-module-vspm-if" in kernel-module-vspmif recipes. kernel-module-vspmif should not provide "kernel-module-vspm-if". "kernel-module-vspm-if" is a separate package with module rules. * Add udev rules for /dev files: uvcs_drv, vspm_if, mmngr, mmngrbuf Bug-AGL: SPEC-4436 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh> Change-Id: I44a0665d6576cdcc9dbbfe5401de3dc9bc281473 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/27635 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'meta-agl-bsp/meta-rcar-gen3/recipes-kernel/kernel-module-uvcs')
-rw-r--r--meta-agl-bsp/meta-rcar-gen3/recipes-kernel/kernel-module-uvcs/kernel-module-uvcs-drv.bbappend10
1 files changed, 10 insertions, 0 deletions
diff --git a/meta-agl-bsp/meta-rcar-gen3/recipes-kernel/kernel-module-uvcs/kernel-module-uvcs-drv.bbappend b/meta-agl-bsp/meta-rcar-gen3/recipes-kernel/kernel-module-uvcs/kernel-module-uvcs-drv.bbappend
index a0ffc20ce..c900bf2f0 100644
--- a/meta-agl-bsp/meta-rcar-gen3/recipes-kernel/kernel-module-uvcs/kernel-module-uvcs-drv.bbappend
+++ b/meta-agl-bsp/meta-rcar-gen3/recipes-kernel/kernel-module-uvcs/kernel-module-uvcs-drv.bbappend
@@ -9,4 +9,14 @@ do_install:append() {
mv ${D}/lib/modules ${D}${nonarch_base_libdir}/
rm -rf ${D}/lib
fi
+
+ # Add a rule to ensure the 'display' user has permission to access
+ install -d ${D}${sysconfdir}/udev/rules.d
+ cat >${D}${sysconfdir}/udev/rules.d/56-uvcs.rules <<'EOF'
+KERNEL=="uvcs", MODE="0660", GROUP="display"
+EOF
}
+
+FILES:${PN}:append = " \
+ ${sysconfdir}/udev/rules.d/*.rules \
+"