Add new HAL manifest file of HAL_MODULE_AUDIO 76/313076/5
authorChanwoo Choi <cw00.choi@samsung.com>
Wed, 19 Jun 2024 03:19:45 +0000 (12:19 +0900)
committerjaechul lee <jcsing.lee@samsung.com>
Wed, 17 Jul 2024 01:35:16 +0000 (01:35 +0000)
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 <cw00.choi@samsung.com>
packaging/hal-api-audio-manifest.xml [new file with mode: 0644]
packaging/hal-api-audio.spec

diff --git a/packaging/hal-api-audio-manifest.xml b/packaging/hal-api-audio-manifest.xml
new file mode 100644 (file)
index 0000000..6df2467
--- /dev/null
@@ -0,0 +1,8 @@
+<hal-api>
+       <manifest platform-version="9.0">
+               <hal-module>
+                       <name>HAL_MODULE_AUDIO</name>
+                       <version>1.0</version>
+               </hal-module>
+       </manifest>
+</hal-api>
index 66c6ac77cf341ce778e7e783312418e4c2a2c9cf..63cbeac129ece96bbb9488ccda36460feced8b73 100644 (file)
@@ -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,-)