From ac0430e6fa7b28074acd74258a4e5f339379e077 Mon Sep 17 00:00:00 2001 From: Jiyoung Yun Date: Thu, 2 Apr 2015 15:46:50 +0900 Subject: system-plugin: Add graphics rules for exynos target Add 51-system-plugin-exynos.rules file Signed-off-by: Jiyoung Yun Change-Id: I49ff0624e24a4dbc01a483d7e5f29e05bc06ae38 --- packaging/system-plugin.spec | 14 ++++++++++++++ rules/51-system-plugin-exynos.rules | 8 ++++++++ 2 files changed, 22 insertions(+) create mode 100644 rules/51-system-plugin-exynos.rules 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" -- cgit v1.2.3