From ee8ef8a30d3bddb5b4b65cb94a8a2809648535cb Mon Sep 17 00:00:00 2001 From: Chanwoo Choi Date: Wed, 19 Jun 2024 12:41:50 +0900 Subject: [PATCH] Add new HAL manifest file of HAL_MODULE_BLUETOOTH HAL_MODULE_BLUETOOTH will support the multiple version of HAL interface. So that v1.0 is first supported version of HAL_MODULE_BLUETOOTH. 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: Ie7434ac3f7a2f8f8399e7c33c559d23925e58577 Signed-off-by: Chanwoo Choi --- packaging/hal-api-bluetooth-manifest.xml | 8 ++++++++ packaging/hal-api-bluetooth.spec | 6 ++++++ 2 files changed, 14 insertions(+) create mode 100644 packaging/hal-api-bluetooth-manifest.xml diff --git a/packaging/hal-api-bluetooth-manifest.xml b/packaging/hal-api-bluetooth-manifest.xml new file mode 100644 index 0000000..88f7afc --- /dev/null +++ b/packaging/hal-api-bluetooth-manifest.xml @@ -0,0 +1,8 @@ + + + + HAL_MODULE_BLUETOOTH + 1.0 + + + diff --git a/packaging/hal-api-bluetooth.spec b/packaging/hal-api-bluetooth.spec index 60b24cb..3eeff2a 100644 --- a/packaging/hal-api-bluetooth.spec +++ b/packaging/hal-api-bluetooth.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 @@ -57,6 +58,8 @@ make %{?jobs:-j%jobs} %install rm -rf %{buildroot} +mkdir -p %{buildroot}%{_sysconfdir}/hal +cp %{SOURCE3} %{buildroot}%{_sysconfdir}/hal/ %make_install %clean @@ -64,9 +67,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} @@ -74,6 +79,7 @@ rm -rf %{buildroot} %license LICENSE %defattr(-,root,root,-) %{_libdir}/hal/*.so* +%{_sysconfdir}/hal/%{name}-manifest.xml %files -n %{devel_name} %defattr(-,root,root,-) -- 2.7.4