From c27d74f2cbaa6bbdbf2238dffb2bb31ec1512087 Mon Sep 17 00:00:00 2001 From: Changyeon Lee Date: Mon, 29 Aug 2016 12:23:16 +0900 Subject: [PATCH] Add udev rules file for slp_global_lock node only install tw1 target Change-Id: I5fc744f0c005695febf9d230396f0d364f9d0dd9 --- packaging/libtbm-exynos.spec | 10 +++++++++- rules/99-libtbm_exynos.rules | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 rules/99-libtbm_exynos.rules diff --git a/packaging/libtbm-exynos.spec b/packaging/libtbm-exynos.spec index 49ed653..96dad3a 100644 --- a/packaging/libtbm-exynos.spec +++ b/packaging/libtbm-exynos.spec @@ -38,6 +38,12 @@ make %{?_smp_mflags} rm -rf %{buildroot} mkdir -p %{buildroot}/%{TZ_SYS_RO_SHARE}/license cp -af COPYING %{buildroot}/%{TZ_SYS_RO_SHARE}/license/%{name} + +%if "%_repository" == "target-circle" +mkdir -p %{buildroot}%{_libdir}/udev/rules.d/ +cp -af rules/99-libtbm_exynos.rules %{buildroot}%{_libdir}/udev/rules.d/ +%endif + %make_install @@ -52,4 +58,6 @@ ln -s libtbm_exynos.so %{_libdir}/bufmgr/libtbm_default.so %files %{_libdir}/bufmgr/libtbm_*.so* %{TZ_SYS_RO_SHARE}/license/%{name} - +%if "%_repository" == "target-circle" +%{_libdir}/udev/rules.d/99-libtbm_exynos.rules +%endif diff --git a/rules/99-libtbm_exynos.rules b/rules/99-libtbm_exynos.rules new file mode 100644 index 0000000..b00652e --- /dev/null +++ b/rules/99-libtbm_exynos.rules @@ -0,0 +1 @@ +KERNEL=="slp_global_lock*", MODE="0666", GROUP="display", SECLABEL{smack}="*" -- 2.7.4