summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiyoung Yun <jy910.yun@samsung.com>2015-04-02 15:46:50 +0900
committerJiyoung Yun <jy910.yun@samsung.com>2015-04-02 16:15:23 +0900
commitac0430e6fa7b28074acd74258a4e5f339379e077 (patch)
tree4a8b704480e8c0d1df1bdbb85a1499a768238c58
parent8d40e831f8d5534be16d3ce6cc8ce44746b5b26a (diff)
downloadsystem-plugin-ac0430e6fa7b28074acd74258a4e5f339379e077.tar.gz
system-plugin-ac0430e6fa7b28074acd74258a4e5f339379e077.tar.bz2
system-plugin-ac0430e6fa7b28074acd74258a4e5f339379e077.zip
Add 51-system-plugin-exynos.rules file Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com> Change-Id: I49ff0624e24a4dbc01a483d7e5f29e05bc06ae38
-rw-r--r--packaging/system-plugin.spec14
-rw-r--r--rules/51-system-plugin-exynos.rules8
2 files changed, 22 insertions, 0 deletions
diff --git a/packaging/system-plugin.spec b/packaging/system-plugin.spec
index cf03d71..0d59307 100644
--- a/packaging/system-plugin.spec
+++ b/packaging/system-plugin.spec
@@ -18,10 +18,18 @@ This package provides target specific system configuration files.
%package u3
Summary: U3/XU3 specific system configuration files
Requires: %{name} = %{version}-%{release}
+Requires: %{name}-exynos = %{version}-%{release}
%description u3
This package provides U3/XU3 specific system configuration files.
+%package exynos
+Summary: Exynos specific system configuration files
+Requires: %{name} = %{version}-%{release}
+
+%description exynos
+This package provides Exynos specific system configuration files.
+
%prep
%setup -q
@@ -38,6 +46,9 @@ ln -s ../resize2fs@.service %{buildroot}%{_unitdir}/basic.target.wants/resize2fs
ln -s ../resize2fs@.service %{buildroot}%{_unitdir}/basic.target.wants/resize2fs@dev-disk-by\\x2dlabel-user.service
ln -s ../resize2fs@.service %{buildroot}%{_unitdir}/basic.target.wants/resize2fs@dev-disk-by\\x2dlabel-rootfs.service
+mkdir -p %{buildroot}%{_libdir}/udev/rules.d/
+install -m 644 rules/51-system-plugin-exynos.rules %{buildroot}%{_libdir}/udev/rules.d/
+
%post
systemctl daemon-reload
@@ -52,3 +63,6 @@ systemctl daemon-reload
%{_unitdir}/basic.target.wants/resize2fs@dev-disk-by\x2dlabel-user.service
%{_unitdir}/basic.target.wants/resize2fs@dev-disk-by\x2dlabel-rootfs.service
+%files exynos
+%manifest %{name}.manifest
+%{_libdir}/udev/rules.d/51-system-plugin-exynos.rules
diff --git a/rules/51-system-plugin-exynos.rules b/rules/51-system-plugin-exynos.rules
new file mode 100644
index 0000000..29d36fc
--- /dev/null
+++ b/rules/51-system-plugin-exynos.rules
@@ -0,0 +1,8 @@
+ACTION!="add", GOTO="system_plugin_end"
+
+# graphics
+KERNEL=="mali*", GROUP="video", SECLABEL{smack}="*"
+KERNEL=="tgl", GROUP="video", SECLABEL{smack}="*"
+KERNEL=="slp_global_lock", GROUP="video", SECLABEL{smack}="*"
+
+LABEL="system_plugin_end"