Add hal-backend-manifest.xml 39/322539/4 accepted/tizen_unified accepted/tizen_unified_x tizen accepted/tizen/unified/20250428.091706 accepted/tizen/unified/x/20250428.070458
authorYoungjae Cho <y0.cho@samsung.com>
Thu, 10 Apr 2025 11:34:43 +0000 (20:34 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Fri, 11 Apr 2025 01:57:10 +0000 (10:57 +0900)
It specifies hal's configuration for transport. It is installed
at the /hal/etc/hal-backend-manifest.xml. Specifies IPC to
display/bezel/led/extcon/battery module to work them in IPC mode.

Change-Id: I501993763a868e2ccbc098e30a502edc6e2ec573
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
packaging/hal-backend-config-generic.spec
packaging/hal-backend-manifest.xml [new file with mode: 0644]

index da181037f06c70557d81921bc469261958e14d87..85c67f9a3dc514cc99a2d9338439fda1df5d3b2f 100644 (file)
@@ -5,6 +5,7 @@ Release:        1
 License:       Apache-2.0
 Source0:    %{name}-%{version}.tar.gz
 Source1:       hal-backend-config-generic.manifest
+Source2:       hal-backend-manifest.xml
 
 %description
 Package for hal backend configuration
@@ -14,6 +15,10 @@ Package for hal backend configuration
 cp %{SOURCE1} .
 
 %install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{_hal_sysconfdir}
+cp %{SOURCE2} %{buildroot}%{_hal_sysconfdir}
 
 %files
 %manifest %{name}.manifest
+%{_hal_sysconfdir}/hal-backend-manifest.xml
diff --git a/packaging/hal-backend-manifest.xml b/packaging/hal-backend-manifest.xml
new file mode 100644 (file)
index 0000000..d057243
--- /dev/null
@@ -0,0 +1,24 @@
+<hal-backend>
+   <manifest>
+      <hal-module>
+         <name>HAL_MODULE_DEVICE_BEZEL</name>
+         <transport>ipc</transport>
+      </hal-module>
+      <hal-module>
+         <name>HAL_MODULE_DEVICE_DISPLAY</name>
+         <transport>ipc</transport>
+      </hal-module>
+      <hal-module>
+         <name>HAL_MODULE_DEVICE_LED</name>
+         <transport>ipc</transport>
+      </hal-module>
+      <hal-module>
+         <name>HAL_MODULE_DEVICE_BATTERY</name>
+         <transport>ipc</transport>
+      </hal-module>
+      <hal-module>
+         <name>HAL_MODULE_DEVICE_EXTERNAL_CONNECTION</name>
+         <transport>ipc</transport>
+      </hal-module>
+   </manifest>
+</hal-backend>