From 98664802e4c6650e8eb38162db9601a6d331c78d Mon Sep 17 00:00:00 2001 From: Vladimir Barinov Date: Mon, 11 Dec 2017 12:48:03 +0300 Subject: IMP udev rules --- meta-rcar-gen3-adas/conf/layer.conf | 1 + meta-rcar-gen3-adas/recipes-core/udev/udev-rules-cvlib.bb | 13 +++++++++++++ .../recipes-core/udev/udev-rules-cvlib/51-imp.rules | 1 + .../recipes-core/udev/udev-rules-cvlib/52-cmem.rules | 1 + 4 files changed, 16 insertions(+) create mode 100644 meta-rcar-gen3-adas/recipes-core/udev/udev-rules-cvlib.bb create mode 100644 meta-rcar-gen3-adas/recipes-core/udev/udev-rules-cvlib/51-imp.rules create mode 100644 meta-rcar-gen3-adas/recipes-core/udev/udev-rules-cvlib/52-cmem.rules diff --git a/meta-rcar-gen3-adas/conf/layer.conf b/meta-rcar-gen3-adas/conf/layer.conf index 229faf8..c5da1c9 100644 --- a/meta-rcar-gen3-adas/conf/layer.conf +++ b/meta-rcar-gen3-adas/conf/layer.conf @@ -75,6 +75,7 @@ IMAGE_INSTALL_append_rcar-gen3 += " \ IMAGE_INSTALL_append_rcar-gen3 += " \ kernel-module-uio-imp \ kernel-module-cmemdrv \ + udev-rules-cvlib \ " DISTRO_FEATURES_remove="x11" diff --git a/meta-rcar-gen3-adas/recipes-core/udev/udev-rules-cvlib.bb b/meta-rcar-gen3-adas/recipes-core/udev/udev-rules-cvlib.bb new file mode 100644 index 0000000..98485c6 --- /dev/null +++ b/meta-rcar-gen3-adas/recipes-core/udev/udev-rules-cvlib.bb @@ -0,0 +1,13 @@ +SUMMARY = "udev rules for R-Car Gen3 CV Library" +LICENSE = "CLOSED" + +SRC_URI = " \ + file://51-imp.rules \ + file://52-cmem.rules \ +" + +do_install () { + install -d ${D}${sysconfdir}/udev/rules.d/ + install -m 0644 ${WORKDIR}/51-imp.rules ${D}${sysconfdir}/udev/rules.d/ + install -m 0644 ${WORKDIR}/52-cmem.rules ${D}${sysconfdir}/udev/rules.d/ +} diff --git a/meta-rcar-gen3-adas/recipes-core/udev/udev-rules-cvlib/51-imp.rules b/meta-rcar-gen3-adas/recipes-core/udev/udev-rules-cvlib/51-imp.rules new file mode 100644 index 0000000..df1a4b2 --- /dev/null +++ b/meta-rcar-gen3-adas/recipes-core/udev/udev-rules-cvlib/51-imp.rules @@ -0,0 +1 @@ +SUBSYSTEM=="uio", ATTR{name}=="im*", SYMLINK+="$attr{name}", MODE="0666" diff --git a/meta-rcar-gen3-adas/recipes-core/udev/udev-rules-cvlib/52-cmem.rules b/meta-rcar-gen3-adas/recipes-core/udev/udev-rules-cvlib/52-cmem.rules new file mode 100644 index 0000000..7846e68 --- /dev/null +++ b/meta-rcar-gen3-adas/recipes-core/udev/udev-rules-cvlib/52-cmem.rules @@ -0,0 +1 @@ +SUBSYSTEM=="cmem", MODE="0666" -- cgit 1.2.3-korg