diff options
author | Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> | 2023-02-02 17:53:27 -0800 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2023-02-06 10:44:47 -0600 |
commit | b11bbec33163b7327199777e2d4117eea2570271 (patch) | |
tree | 815c7c8d84bc2c3a7b32b1f2041521ed3b45c6af /meta-xilinx-core | |
parent | b0580329adc907c2fd78382cf5f862cb593f8dbc (diff) | |
download | meta-xilinx-b11bbec33163b7327199777e2d4117eea2570271.tar.gz |
kernel-module-vdu: Add vdu rules to video group
Add vdu udev-rules file to change permissions and ownership group to video.
This allows non root users to run encoder and decoder software.
Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-core')
-rw-r--r-- | meta-xilinx-core/recipes-multimedia/vdu/files/99-vdu-enc-dec.rules | 4 | ||||
-rwxr-xr-x | meta-xilinx-core/recipes-multimedia/vdu/kernel-module-vdu.bb | 12 |
2 files changed, 15 insertions, 1 deletions
diff --git a/meta-xilinx-core/recipes-multimedia/vdu/files/99-vdu-enc-dec.rules b/meta-xilinx-core/recipes-multimedia/vdu/files/99-vdu-enc-dec.rules new file mode 100644 index 00000000..78bb54f4 --- /dev/null +++ b/meta-xilinx-core/recipes-multimedia/vdu/files/99-vdu-enc-dec.rules | |||
@@ -0,0 +1,4 @@ | |||
1 | # Allegro VDU Encode, Decoder module drivers | ||
2 | SUBSYSTEM=="allegro_decode_class", KERNEL=="allegroDecodeIP[0-4]*", MODE="0660", GROUP="video", TAG+="uaccess" | ||
3 | |||
4 | |||
diff --git a/meta-xilinx-core/recipes-multimedia/vdu/kernel-module-vdu.bb b/meta-xilinx-core/recipes-multimedia/vdu/kernel-module-vdu.bb index 006e707e..285c8607 100755 --- a/meta-xilinx-core/recipes-multimedia/vdu/kernel-module-vdu.bb +++ b/meta-xilinx-core/recipes-multimedia/vdu/kernel-module-vdu.bb | |||
@@ -8,13 +8,16 @@ XILINX_VDU_VERSION = "1.0.0" | |||
8 | PV = "${XILINX_VDU_VERSION}-xilinx-${XILINX_RELEASE_VERSION}+git${SRCPV}" | 8 | PV = "${XILINX_VDU_VERSION}-xilinx-${XILINX_RELEASE_VERSION}+git${SRCPV}" |
9 | 9 | ||
10 | S = "${WORKDIR}/git" | 10 | S = "${WORKDIR}/git" |
11 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" | ||
11 | 12 | ||
12 | BRANCH ?= "master" | 13 | BRANCH ?= "master" |
13 | REPO ?= "git://github.com/Xilinx/vdu-modules.git;protocol=https" | 14 | REPO ?= "git://github.com/Xilinx/vdu-modules.git;protocol=https" |
14 | SRCREV ?= "81cd9cd4f8fea9e0cb8951bf62ac2d37f33fce25" | 15 | SRCREV ?= "81cd9cd4f8fea9e0cb8951bf62ac2d37f33fce25" |
15 | 16 | ||
16 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" | 17 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" |
17 | SRC_URI = "${REPO};${BRANCHARG}" | 18 | SRC_URI = "${REPO};${BRANCHARG} \ |
19 | file://99-vdu-enc-dec.rules \ | ||
20 | " | ||
18 | 21 | ||
19 | inherit module features_check | 22 | inherit module features_check |
20 | 23 | ||
@@ -29,3 +32,10 @@ COMPATIBLE_MACHINE:versal-ai-core = "versal-ai-core" | |||
29 | COMPATIBLE_MACHINE:versal-ai-edge = "versal-ai-edge" | 32 | COMPATIBLE_MACHINE:versal-ai-edge = "versal-ai-edge" |
30 | 33 | ||
31 | PACKAGE_ARCH = "${SOC_FAMILY_ARCH}" | 34 | PACKAGE_ARCH = "${SOC_FAMILY_ARCH}" |
35 | |||
36 | do_install:append() { | ||
37 | install -d ${D}${sysconfdir}/udev/rules.d | ||
38 | install -m 0644 ${WORKDIR}/99-vdu-enc-dec.rules ${D}${sysconfdir}/udev/rules.d/ | ||
39 | } | ||
40 | |||
41 | FILES:${PN} = "${sysconfdir}/udev/rules.d/*" | ||