From 8604c36e00059b3c38e4b93b09031ee6bf7da692 Mon Sep 17 00:00:00 2001 From: Chanwoo Choi Date: Wed, 19 Jun 2024 15:31:49 +0900 Subject: 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 --- packaging/hal-api-nfc-manifest.xml | 8 ++++++++ packaging/hal-api-nfc.spec | 6 ++++++ 2 files changed, 14 insertions(+) create mode 100644 packaging/hal-api-nfc-manifest.xml 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_MODULE_NFC + 1.0 + + + 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,-) -- cgit v1.2.3