summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2024-06-19 12:36:55 +0900
committerChanwoo Choi <cw00.choi@samsung.com>2024-06-20 12:03:06 +0900
commit80fe0de8e6ed6d13e480372a77275786fc8d056f (patch)
tree056a14c9030ad9ecde682aafdd30d1fc46338b83
parent469f099c7a946c38b018070555e2923e07a47fb2 (diff)
downloadradio-80fe0de8e6ed6d13e480372a77275786fc8d056f.tar.gz
radio-80fe0de8e6ed6d13e480372a77275786fc8d056f.tar.bz2
radio-80fe0de8e6ed6d13e480372a77275786fc8d056f.zip
Add new HAL manifest file of HAL_MODULE_RADIO
HAL_MODULE_RADIO will support the multiple version of HAL interface. So that v1.0 is first supported version of HAL_MODULE_RADIO. 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: Ibf562b6e11a26f65d4b58620617866f3d3b023b8 Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
-rw-r--r--packaging/hal-api-radio-manifest.xml8
-rw-r--r--packaging/hal-api-radio.spec6
2 files changed, 14 insertions, 0 deletions
diff --git a/packaging/hal-api-radio-manifest.xml b/packaging/hal-api-radio-manifest.xml
new file mode 100644
index 0000000..26393e5
--- /dev/null
+++ b/packaging/hal-api-radio-manifest.xml
@@ -0,0 +1,8 @@
+<hal-api>
+ <manifest platform-version="9.0">
+ <hal-module>
+ <name>HAL_MODULE_RADIO</name>
+ <version>1.0</version>
+ </hal-module>
+ </manifest>
+</hal-api>
diff --git a/packaging/hal-api-radio.spec b/packaging/hal-api-radio.spec
index 9ed60a6..67f7271 100644
--- a/packaging/hal-api-radio.spec
+++ b/packaging/hal-api-radio.spec
@@ -11,6 +11,7 @@ License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
Source1: %{name}.manifest
Source2: %{name}-haltests.manifest
+Source3: %{name}-manifest.xml
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
@@ -53,6 +54,8 @@ make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
+mkdir -p %{buildroot}%{_sysconfdir}/hal
+cp %{SOURCE3} %{buildroot}%{_sysconfdir}/hal/
%make_install
%clean
@@ -60,9 +63,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}
@@ -70,6 +75,7 @@ rm -rf %{buildroot}
%license LICENSE
%defattr(-,root,root,-)
%{_libdir}/hal/*.so.*
+%{_sysconfdir}/hal/%{name}-manifest.xml
%files devel
%defattr(-,root,root,-)