halapi: power: Add HAL manifest of HAL_MODULE_POWER 34/312934/1 accepted/tizen/unified/20240618.195758 accepted/tizen/unified/dev/20240620.010451 accepted/tizen/unified/x/20240619.013532
authorChanwoo Choi <cw00.choi@samsung.com>
Mon, 17 Jun 2024 10:53:14 +0000 (19:53 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 17 Jun 2024 10:55:35 +0000 (19:55 +0900)
The HAL manifest specify the supported HAL interface version.
It will be added on Tizen major version release.

[Detailed description of /etc/hal-manifest/hal-api-power.xml]
- The following hal-manifest means that HAL_MODULE_POWER support v1.0 on
Tizen 9.0 platform.

<hal-api>
<manifest platform-version="9.0">
<hal-module>
<name>HAL_MODULE_POWER</name>
<version>1.0</version>
</hal-module>
</manifest>
</hal-api>

Change-Id: I5c27b4bc714b23dfe89b3f014aa48010f126d7b5
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
CMakeLists.txt
packaging/hal-api-power.spec
packaging/hal-api-power.xml [new file with mode: 0644]

index 5658519d80393a14e3333576f0f2f46c66d46386..0cd7d8fe72411661f38e137d01b66155d6916d58 100644 (file)
@@ -47,5 +47,7 @@ INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/
        FILES_MATCHING PATTERN "*.h")
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.pc
        DESTINATION ${LIBDIR}/pkgconfig)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/packaging/hal-api-power.xml
+       DESTINATION /etc/hal-manifest/)
 
 ADD_SUBDIRECTORY(tests)
index 07b2aa035d957e9a8731d8a0fed91fd65d300c0d..395487579ff5678b1b1e1ddef5194b5b05d8fb71 100644 (file)
@@ -63,6 +63,7 @@ rm -rf %{buildroot}
 %license LICENSE
 %defattr(-,root,root,-)
 %{_libdir}/hal/*.so*
+%{_sysconfdir}/hal-manifest/hal-api-power.xml
 
 %files -n %{devel_name}
 %defattr(-,root,root,-)
diff --git a/packaging/hal-api-power.xml b/packaging/hal-api-power.xml
new file mode 100644 (file)
index 0000000..a369408
--- /dev/null
@@ -0,0 +1,8 @@
+<hal-api>
+       <manifest platform-version="9.0">
+               <hal-module>
+                       <name>HAL_MODULE_POWER</name>
+                       <version>1.0</version>
+               </hal-module>
+       </manifest>
+</hal-api>