Add new HAL manifest file of HAL_MODULE_LOCATION 18/313118/2 accepted/tizen_unified_dev accepted/tizen/unified/20240709.165105 accepted/tizen/unified/dev/20240710.032359 accepted/tizen/unified/toolchain/20240812.133233 accepted/tizen/unified/x/20240710.013008 accepted/tizen/unified/x/asan/20240813.231642
authorChanwoo Choi <cw00.choi@samsung.com>
Wed, 19 Jun 2024 06:45:09 +0000 (15:45 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 20 Jun 2024 03:15:15 +0000 (12:15 +0900)
HAL_MODULE_LOCATION will support the multiple version of HAL interface.
So that v1.0 is first supported version of HAL_MODULE_LOCATION.

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: I4041b2ebf8eb0eac12f68118d1b47c9ea9fe2447
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
packaging/hal-api-location-manifest.xml [new file with mode: 0644]
packaging/hal-api-location.spec

diff --git a/packaging/hal-api-location-manifest.xml b/packaging/hal-api-location-manifest.xml
new file mode 100644 (file)
index 0000000..75bdace
--- /dev/null
@@ -0,0 +1,8 @@
+<hal-api>
+       <manifest platform-version="9.0">
+               <hal-module>
+                       <name>HAL_MODULE_LOCATION</name>
+                       <version>1.0</version>
+               </hal-module>
+       </manifest>
+</hal-api>
index 8e58c020570a8b6e89b66d09fc614cef8167c58f..61abe2a9176c45cb32d07abd8d176648f75a6a21 100644 (file)
@@ -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,-)