summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Fredriksson <john.xj.fredriksson@stericsson.com>2011-10-18 13:28:26 +0200
committerJohn Fredriksson <john.xj.fredriksson@stericsson.com>2011-10-18 13:28:26 +0200
commitabdd041f77943096a24802e68c9460779c02ff68 (patch)
treee644641cd7ccb336938a74810863fe99506183aa
parent2a4c52397664b394f2437bd68938061f80d7cd18 (diff)
Add udev rules and xorg.conf.
Udev rules for changing permissions to device files to make them accessible for ordinary users is included in the debian package.
-rw-r--r--10-ste_mali.rules2
-rw-r--r--99-ste_mali.conf18
-rwxr-xr-xdebian/rules4
-rw-r--r--xorg.conf21
4 files changed, 24 insertions, 21 deletions
diff --git a/10-ste_mali.rules b/10-ste_mali.rules
new file mode 100644
index 0000000..21a3fe8
--- /dev/null
+++ b/10-ste_mali.rules
@@ -0,0 +1,2 @@
+KERNEL=="mali",SUBSYSTEM=="mali",MODE="0777",GROUP="video"
+KERNEL=="hwmem",SUBSYSTEM=="misc",MODE="0777",GROUP="video"
diff --git a/99-ste_mali.conf b/99-ste_mali.conf
new file mode 100644
index 0000000..9451dda
--- /dev/null
+++ b/99-ste_mali.conf
@@ -0,0 +1,18 @@
+Section "Device"
+ Identifier "Mali FBDEV"
+ Driver "mali"
+ Option "fbdev" "/dev/fb0"
+ Option "DRI2" "true"
+ Option "DRI2" "true"
+ Option "DRI2_PAGE_FLIP" "true"
+ Option "DRI2_WAIT_VSYNC" "false"
+EndSection
+
+Section "Screen"
+ Identifier "Mali Screen"
+ Device "Mali FBDEV"
+EndSection
+
+Section "DRI"
+ Mode 0666
+EndSection
diff --git a/debian/rules b/debian/rules
index d999a07..f358dc8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -61,6 +61,10 @@ install: build
dh_installdirs
$(MAKE) DESTDIR=$(CURDIR)/debian/xf86-video-mali install
+ mkdir -p $(CURDIR)/debian/xf86-video-mali/usr/share/X11/xorg.conf.d
+ cp $(CURDIR)/99-ste_mali.conf $(CURDIR)/debian/xf86-video-mali/usr/share/X11/xorg.conf.d/
+ mkdir -p $(CURDIR)/debian/xf86-video-mali/etc/udev/rules.d
+ cp $(CURDIR)/10-ste_mali.rules $(CURDIR)/debian/xf86-video-mali/etc/udev/rules.d/
# Build architecture-independent files here.
diff --git a/xorg.conf b/xorg.conf
deleted file mode 100644
index 9b2cb32..0000000
--- a/xorg.conf
+++ /dev/null
@@ -1,21 +0,0 @@
-# X.Org X server configuration file for xfree86-video-mali
-
-Section "Device"
- Identifier "Mali FBDEV"
- Driver "mali"
- Option "fbdev" "/dev/fb0"
- Option "DRI2" "true"
- Option "DRI2" "true"
- Option "DRI2_PAGE_FLIP" "true"
- Option "DRI2_WAIT_VSYNC" "false"
-EndSection
-
-Section "Screen"
- Identifier "Mali Screen"
- Device "Mali FBDEV"
- DefaultDepth 24
-EndSection
-
-Section "DRI"
- Mode 0666
-EndSection