udev permissions for gbm: fixes #34
This commit is contained in:
parent
1d7662994d
commit
13e6b6f3c9
10
Makefile
10
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
|
||||
|
2
udev/99-kodi.rules
Normal file
2
udev/99-kodi.rules
Normal file
@ -0,0 +1,2 @@
|
||||
SUBSYSTEM=="dma_heap", KERNEL=="linux*", GROUP="video", MODE="0660"
|
||||
SUBSYSTEM=="dma_heap", KERNEL=="system", GROUP="video", MODE="0660"
|
Loading…
Reference in New Issue
Block a user