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:
committed by
bernard PUEL
parent
fdfef0d6b3
commit
e970002c8d
15
recipes-kernel/gpio-udev/gpio-udev.bb
Normal file
15
recipes-kernel/gpio-udev/gpio-udev.bb
Normal 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
|
||||
}
|
||||
2
recipes-kernel/gpio-udev/gpio-udev/99-gpio-group.rules
Normal file
2
recipes-kernel/gpio-udev/gpio-udev/99-gpio-group.rules
Normal 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"
|
||||
@ -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"
|
||||
|
||||
Reference in New Issue
Block a user