udev permissions for gbm: fixes #34

This commit is contained in:
graysky 2021-02-16 07:18:17 -05:00
parent 1d7662994d
commit 13e6b6f3c9
2 changed files with 10 additions and 2 deletions

View File

@ -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

2
udev/99-kodi.rules Normal file
View File

@ -0,0 +1,2 @@
SUBSYSTEM=="dma_heap", KERNEL=="linux*", GROUP="video", MODE="0660"
SUBSYSTEM=="dma_heap", KERNEL=="system", GROUP="video", MODE="0660"