From ec7b3895df01a240213528d7c6be5a0c3446bc3b Mon Sep 17 00:00:00 2001 From: Chanwoo Choi Date: Wed, 19 Jun 2024 12:19:45 +0900 Subject: [PATCH] Add new HAL manifest file of HAL_MODULE_AUDIO HAL_MODULE_AUDIO will support the multiple version of HAL interface. So that v1.0 is first supported version of HAL_MODULE_AUDIO. 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: Iaea1f03211611d65aaf09575d7ecafc5ec6629a2 Signed-off-by: Chanwoo Choi --- packaging/hal-api-audio-manifest.xml | 8 ++++++++ packaging/hal-api-audio.spec | 6 ++++++ 2 files changed, 14 insertions(+) create mode 100644 packaging/hal-api-audio-manifest.xml diff --git a/packaging/hal-api-audio-manifest.xml b/packaging/hal-api-audio-manifest.xml new file mode 100644 index 0000000..6df2467 --- /dev/null +++ b/packaging/hal-api-audio-manifest.xml @@ -0,0 +1,8 @@ + + + + HAL_MODULE_AUDIO + 1.0 + + + diff --git a/packaging/hal-api-audio.spec b/packaging/hal-api-audio.spec index 66c6ac7..63cbeac 100644 --- a/packaging/hal-api-audio.spec +++ b/packaging/hal-api-audio.spec @@ -6,6 +6,7 @@ Group: System/Libraries License: Apache-2.0 URL: http://tizen.org Source0: hal-api-audio-%{version}.tar.gz +Source1: %{name}-manifest.xml BuildRequires: cmake BuildRequires: pkgconfig(hal-api-common) BuildRequires: pkgconfig(capi-base-common) @@ -47,14 +48,18 @@ make %{?jobs:-j%jobs} %install install -d -m 755 %{buildroot}%{_datadir}/testcase/res/audio/ install -m 644 testcase/*.raw %{buildroot}%{_datadir}/testcase/res/audio/ +mkdir -p %{buildroot}%{_sysconfdir}/hal +cp %{SOURCE1} %{buildroot}%{_sysconfdir}/hal/ %make_install %post /sbin/ldconfig +%{_bindir}/hal-compatibility-checker --reset %postun /sbin/ldconfig +%{_bindir}/hal-compatibility-checker --reset %files %defattr(-,root,root,-) @@ -62,6 +67,7 @@ install -m 644 testcase/*.raw %{buildroot}%{_datadir}/testcase/res/audio/ %defattr(-,root,root,-) %{_libdir}/hal/*.so* %license LICENSE.APLv2 +%{_sysconfdir}/hal/%{name}-manifest.xml %files devel %defattr(-,root,root,-) -- 2.34.1