From 396fb1ba25fa4d25cf420506cb875d6f9a1c42d5 Mon Sep 17 00:00:00 2001 From: Chanwoo Choi Date: Wed, 19 Jun 2024 12:33:31 +0900 Subject: [PATCH] Add new HAL manifest file of HAL_MODULE_CAMERA HAL_MODULE_CAMERA will support the multiple version of HAL interface. So that v1.0 is first supported version of HAL_MODULE_CAMERA. 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: I150911b9cd4f6bdc3706603f28d52468e2e780da Signed-off-by: Chanwoo Choi --- packaging/hal-api-camera-manifest.xml | 8 ++++++++ packaging/hal-api-camera.spec | 8 ++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 packaging/hal-api-camera-manifest.xml diff --git a/packaging/hal-api-camera-manifest.xml b/packaging/hal-api-camera-manifest.xml new file mode 100644 index 0000000..c2ae86f --- /dev/null +++ b/packaging/hal-api-camera-manifest.xml @@ -0,0 +1,8 @@ + + + + HAL_MODULE_CAMERA + 1.0 + + + diff --git a/packaging/hal-api-camera.spec b/packaging/hal-api-camera.spec index 19dce3d..b8b340f 100644 --- a/packaging/hal-api-camera.spec +++ b/packaging/hal-api-camera.spec @@ -9,6 +9,7 @@ Release: 0 Group: Development/Libraries License: Apache-2.0 Source0: %{name}-%{version}.tar.gz +Source1: %{name}-manifest.xml Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig BuildRequires: cmake @@ -51,6 +52,8 @@ make %{?jobs:-j%jobs} %install rm -rf %{buildroot} +mkdir -p %{buildroot}%{_sysconfdir}/hal +cp %{SOURCE1} %{buildroot}%{_sysconfdir}/hal/ %make_install %clean @@ -58,17 +61,18 @@ rm -rf %{buildroot} %post /sbin/ldconfig +/usr/bin/hal-compatibility-checker --reset %postun /sbin/ldconfig - +/usr/bin/hal-compatibility-checker --reset %files %manifest %{name}.manifest %license LICENSE %defattr(-,root,root,-) %{_libdir}/hal/*.so.* - +%{_sysconfdir}/hal/%{name}-manifest.xml %files devel %defattr(-,root,root,-) -- 2.34.1