GPIO-UDEV: assign /dev/gpio to dialout group

Signed-off-by: Lionel VITTE <lionel.vitte@st.com>
Change-Id: Ide0d6e4e5177fb9f56eb174734fb3b61f0e075af
This commit is contained in:
Lionel VITTE
2022-08-26 11:10:09 +02:00
committed by bernard PUEL
parent fdfef0d6b3
commit e970002c8d
3 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,15 @@
SUMMARY = "Add udev rules to set GPIO to dialout group"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6"
DEPENDS = "udev"
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
SRC_URI = "file://99-gpio-group.rules"
do_install() {
install -D -p -m0664 ${WORKDIR}/99-gpio-group.rules \
${D}${sysconfdir}/udev/rules.d/99-gpio-group.rules
}

View File

@ -0,0 +1,2 @@
# Add /dev/gpiochip to dialout group, like Raspberry, to allow weston user to access GPIO
ACTION=="add", KERNEL=="gpio*", SUBSYSTEM=="gpio", GROUP="dialout"

View File

@ -18,6 +18,7 @@ RDEPENDS:packagegroup-framework-core = "\
packagegroup-framework-core-display \
packagegroup-framework-core-mm \
infos-openstlinux \
gpio-udev \
"
SUMMARY:packagegroup-framework-core-display = "Framework core components for display"