diff options
-rw-r--r-- | packaging/system-plugin.spec | 14 | ||||
-rw-r--r-- | rules/51-system-plugin-spreadtrum.rules | 17 |
2 files changed, 31 insertions, 0 deletions
diff --git a/packaging/system-plugin.spec b/packaging/system-plugin.spec index 05e765a..ee05a3f 100644 --- a/packaging/system-plugin.spec +++ b/packaging/system-plugin.spec @@ -38,6 +38,13 @@ Requires: %{name} = %{version}-%{release} %description exynos This package provides Exynos specific system configuration files. +%package spreadtrum +Summary: Spreadtrum specific system configuration files +Requires: %{name} = %{version}-%{release} + +%description spreadtrum +This package provides Spreadtrum specific system configuration files. + %prep %setup -q @@ -58,6 +65,7 @@ ln -s ../tizen-system-env.service %{buildroot}%{_unitdir}/basic.target.wants/tiz mkdir -p %{buildroot}%{_prefix}/lib/udev/rules.d/ install -m 644 rules/51-system-plugin-exynos.rules %{buildroot}%{_prefix}/lib/udev/rules.d/ +install -m 644 rules/51-system-plugin-spreadtrum.rules %{buildroot}%{_prefix}/lib/udev/rules.d/ # fstab mkdir -p %{buildroot}%{_sysconfdir} @@ -90,3 +98,9 @@ systemctl daemon-reload %files exynos %manifest %{name}.manifest %{_prefix}/lib/udev/rules.d/51-system-plugin-exynos.rules + +%files spreadtrum +%manifest %{name}.manifest +%{_prefix}/lib/udev/rules.d/51-system-plugin-spreadtrum.rules +%{_unitdir}/tizen-system-env.service +%{_unitdir}/basic.target.wants/tizen-system-env.service diff --git a/rules/51-system-plugin-spreadtrum.rules b/rules/51-system-plugin-spreadtrum.rules new file mode 100644 index 0000000..650ce00 --- /dev/null +++ b/rules/51-system-plugin-spreadtrum.rules @@ -0,0 +1,17 @@ +ACTION!="add", GOTO="devices_end" + +KERNEL=="null|zero|full|random|urandom|uinput", SECLABEL{smack}="*" + +KERNEL=="umts_csd", GROUP="video", SECLABEL{smack}="*" +KERNEL=="media[0-9]", MODE="0664", GROUP="video", SECLABEL{smack}="*" + +KERNEL=="event*", SYMLINK+="%k" + +KERNEL=="samsung_sdb", SECLABEL{smack}="*" + +# Marvell +KERNEL=="uio[0-9]", MODE="0666", SECLABEL{smack}="*" + +KERNEL=="mobicore-user", SECLABEL{smack}="*" + +LABEL="devices_end" |