diff options
author | Sandeep Gundlupet Raju <sandeep.gundlupet-raju@xilinx.com> | 2022-03-01 16:38:11 -0700 |
---|---|---|
committer | Mark Hatle <mark.hatle@xilinx.com> | 2022-03-02 17:28:09 -0800 |
commit | 71ca272cf8c96ddd6a7182729a225adf19f933c0 (patch) | |
tree | 924b40af9a09bda8e057ce83cc58e8dff87ec793 /meta-xilinx-core/recipes-multimedia/vcu | |
parent | 55e47ae13bdfc94e95ec0d7edb01d3df4cd09e90 (diff) | |
download | meta-xilinx-71ca272cf8c96ddd6a7182729a225adf19f933c0.tar.gz |
kernel-module-vcu: Add vcu rules to video group
Adding vcu rules file changing permissions and ownership group to video
so that any new user added to video groups can run allegro vcu encoder
and decoder devices.
Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@xilinx.com>
Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
Diffstat (limited to 'meta-xilinx-core/recipes-multimedia/vcu')
-rw-r--r-- | meta-xilinx-core/recipes-multimedia/vcu/files/99-vcu-enc-dec.rules | 7 | ||||
-rw-r--r-- | meta-xilinx-core/recipes-multimedia/vcu/kernel-module-vcu.bb | 14 |
2 files changed, 20 insertions, 1 deletions
diff --git a/meta-xilinx-core/recipes-multimedia/vcu/files/99-vcu-enc-dec.rules b/meta-xilinx-core/recipes-multimedia/vcu/files/99-vcu-enc-dec.rules new file mode 100644 index 00000000..4643ad37 --- /dev/null +++ b/meta-xilinx-core/recipes-multimedia/vcu/files/99-vcu-enc-dec.rules | |||
@@ -0,0 +1,7 @@ | |||
1 | # Allegro VCU Encode, Decoder module drivers | ||
2 | SUBSYSTEM=="allegro_encode_class", KERNEL=="allegroIP", MODE="0660", GROUP="video" | ||
3 | SUBSYSTEM=="allegro_decode_class", KERNEL=="allegroDecodeIP", MODE="0660", GROUP="video" | ||
4 | |||
5 | # Xilinx Video DMA driver | ||
6 | SUBSYSTEM=="char", KERNEL=="dmaproxy", MODE="0660", GROUP="video" | ||
7 | |||
diff --git a/meta-xilinx-core/recipes-multimedia/vcu/kernel-module-vcu.bb b/meta-xilinx-core/recipes-multimedia/vcu/kernel-module-vcu.bb index 816b7517..505b54db 100644 --- a/meta-xilinx-core/recipes-multimedia/vcu/kernel-module-vcu.bb +++ b/meta-xilinx-core/recipes-multimedia/vcu/kernel-module-vcu.bb | |||
@@ -9,12 +9,17 @@ PV = "${XILINX_VCU_VERSION}-xilinx-${XILINX_RELEASE_VERSION}+git${SRCPV}" | |||
9 | 9 | ||
10 | S = "${WORKDIR}/git" | 10 | S = "${WORKDIR}/git" |
11 | 11 | ||
12 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" | ||
13 | |||
12 | BRANCH = "master" | 14 | BRANCH = "master" |
13 | REPO = "git://github.com/Xilinx/vcu-modules.git;protocol=https" | 15 | REPO = "git://github.com/Xilinx/vcu-modules.git;protocol=https" |
14 | SRCREV = "9d2657550eccebccce08cacfcdd369367b9f6be4" | 16 | SRCREV = "9d2657550eccebccce08cacfcdd369367b9f6be4" |
15 | 17 | ||
16 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" | 18 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" |
17 | SRC_URI = "${REPO};${BRANCHARG}" | 19 | SRC_URI = " \ |
20 | ${REPO};${BRANCHARG} \ | ||
21 | file://99-vcu-enc-dec.rules \ | ||
22 | " | ||
18 | 23 | ||
19 | inherit module | 24 | inherit module |
20 | 25 | ||
@@ -26,3 +31,10 @@ COMPATIBLE_MACHINE = "^$" | |||
26 | COMPATIBLE_MACHINE:zynqmp = "zynqmp" | 31 | COMPATIBLE_MACHINE:zynqmp = "zynqmp" |
27 | 32 | ||
28 | KERNEL_MODULE_AUTOLOAD += "dmaproxy" | 33 | KERNEL_MODULE_AUTOLOAD += "dmaproxy" |
34 | |||
35 | do_install:append() { | ||
36 | install -d ${D}${sysconfdir}/udev/rules.d | ||
37 | install -m 0644 ${WORKDIR}/99-vcu-enc-dec.rules ${D}${sysconfdir}/udev/rules.d/ | ||
38 | } | ||
39 | |||
40 | FILES:${PN} = "${sysconfdir}/udev/rules.d/*" | ||