summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2024-06-19 15:31:49 +0900
committerChanwoo Choi <cw00.choi@samsung.com>2024-06-20 12:11:06 +0900
commit8604c36e00059b3c38e4b93b09031ee6bf7da692 (patch)
tree8b316623c1cd5d14dc9d2505d5d916f6196b333a
parent218cb9c276458ac4c624bd540e31f8a2ec6d2f16 (diff)
downloadnfc-8604c36e00059b3c38e4b93b09031ee6bf7da692.tar.gz
nfc-8604c36e00059b3c38e4b93b09031ee6bf7da692.tar.bz2
nfc-8604c36e00059b3c38e4b93b09031ee6bf7da692.zip
Add new HAL manifest file of HAL_MODULE_NFC
HAL_MODULE_NFC will support the multiple version of HAL interface. So that v1.0 is first supported version of HAL_MODULE_NFC. And HALCC (HAL Compatibility Checker) checks and stores the hal-backend compatibility result between HAL manifest and hal-backend package under /opt/etc/hal/ directory. When installing/un-installing hal-api package, hal-backend compatibility result should be reset. So that reset the hal-backend compatibility result by executing 'usr/bin/hal-compatibility-checker --reset' command. Change-Id: I30a30f0c5e21a413c836555ef0c566b690254562 Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
-rw-r--r--packaging/hal-api-nfc-manifest.xml8
-rw-r--r--packaging/hal-api-nfc.spec6
2 files changed, 14 insertions, 0 deletions
diff --git a/packaging/hal-api-nfc-manifest.xml b/packaging/hal-api-nfc-manifest.xml
new file mode 100644
index 0000000..cd27a82
--- /dev/null
+++ b/packaging/hal-api-nfc-manifest.xml
@@ -0,0 +1,8 @@
+<hal-api>
+ <manifest platform-version="9.0">
+ <hal-module>
+ <name>HAL_MODULE_NFC</name>
+ <version>1.0</version>
+ </hal-module>
+ </manifest>
+</hal-api>
diff --git a/packaging/hal-api-nfc.spec b/packaging/hal-api-nfc.spec
index ccec6d7..d0170dd 100644
--- a/packaging/hal-api-nfc.spec
+++ b/packaging/hal-api-nfc.spec
@@ -12,6 +12,7 @@ License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
Source1: %{name}.manifest
Source2: %{devel_name}.manifest
+Source3: %{name}-manifest.xml
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
@@ -47,6 +48,8 @@ make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
+mkdir -p %{buildroot}%{_sysconfdir}/hal
+cp %{SOURCE3} %{buildroot}%{_sysconfdir}/hal/
%make_install
%clean
@@ -54,9 +57,11 @@ rm -rf %{buildroot}
%post
/sbin/ldconfig
+/usr/bin/hal-compatibility-checker --reset
%postun
/sbin/ldconfig
+/usr/bin/hal-compatibility-checker --reset
### contain files to package #########
%files -n %{name}
@@ -64,6 +69,7 @@ rm -rf %{buildroot}
%license LICENSE
%defattr(-,root,root,-)
%{_libdir}/hal/*.so*
+%{_sysconfdir}/hal/%{name}-manifest.xml
%files -n %{devel_name}
%defattr(-,root,root,-)