From 13e6b6f3c9513d45728d03c066c83a5db7874a79 Mon Sep 17 00:00:00 2001 From: graysky Date: Tue, 16 Feb 2021 07:18:17 -0500 Subject: [PATCH] udev permissions for gbm: fixes #34 --- Makefile | 10 ++++++++-- udev/99-kodi.rules | 2 ++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 udev/99-kodi.rules diff --git a/Makefile b/Makefile index af23203..f59266c 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ PREFIX ?= /usr INITDIR = $(PREFIX)/lib/systemd/system USERDIR = $(PREFIX)/lib/sysusers.d TMPFDIR = $(PREFIX)/lib/tmpfiles.d +UDEVDIR = $(PREFIX)/lib/udev/rules.d RM = rm INSTALL = install -p @@ -15,6 +16,10 @@ common/$(PN): @echo -e '\033[1;32mNothing to be done.\033[0m' @echo -e '\033[1;32mJust run make install as root.\033[0m' +install-common: + $(INSTALL_DIR) "$(DESTDIR)$(UDEVDIR)" + $(INSTALL_DATA) udev/99-kodi.rules "$(DESTDIR)$(UDEVDIR)/99-kodi.rules" + install-init: $(INSTALL_DIR) "$(DESTDIR)$(INITDIR)" $(INSTALL_DIR) "$(DESTDIR)$(USERDIR)" @@ -31,7 +36,8 @@ uninstall: $(RM) "$(DESTDIR)$(INITDIR)/kodi-x11.service" $(RM) "$(DESTDIR)$(TMPFDIR)/kodi-standalone.conf" $(RM) "$(DESTDIR)$(USERDIR)/kodi-standalone.conf" + $(RM) "$(DESTDIR)$(UDEVDIR)/99-kodi.rules" -install: install-init +install: install-common install-init -.PHONY: install-init uninstall +.PHONY: install-common install-init uninstall diff --git a/udev/99-kodi.rules b/udev/99-kodi.rules new file mode 100644 index 0000000..0d21282 --- /dev/null +++ b/udev/99-kodi.rules @@ -0,0 +1,2 @@ +SUBSYSTEM=="dma_heap", KERNEL=="linux*", GROUP="video", MODE="0660" +SUBSYSTEM=="dma_heap", KERNEL=="system", GROUP="video", MODE="0660"