[HALACR-20] rs_resource: Add new packages for hal-api-ml 91/318391/8 accepted/tizen/unified/20250311.134549 accepted/tizen/unified/x/20250312.054005
authorYongjoo Ahn <yongjoo1.ahn@samsung.com>
Mon, 13 Jan 2025 07:01:36 +0000 (16:01 +0900)
committerYongjoo Ahn <yongjoo1.ahn@samsung.com>
Wed, 5 Mar 2025 08:07:07 +0000 (17:07 +0900)
- Role of HAL_MODULE_ML:
Tizen ML API may require a hardware device to accelerate its job. This
HAL ML provides an interface for Tizen ML API (NNStreamer's
tensor_filter subplugin) to use such hardware acceleration devices (NPU,
...) if available.

- Newly added rootstrap information:
```xml
<?xml version="1.0"?>
<rootstrap name="hal-api-ml">
  <email></email>
  <emulator>
    <rpm accept="hal-api-ml" arch="i686"/>
    <rpm accept="hal-api-ml-devel" arch="i686"/>
  </emulator>
  <target>
    <rpm accept="hal-api-ml" arch="armv7l"/>
    <rpm accept="hal-api-ml-devel" arch="armv7l"/>
  </target>
  <necessary>
      <file>/usr/lib/hal/libhal-api-ml.so*</file>
      <file>/usr/include/hal/hal-ml-interface*.h</file>
      <file>/usr/include/hal/hal-ml-types.h</file>
  </necessary>
  <include_path>/usr/include/</include_path>
  <library_path>/usr/lib</library_path>
</rootstrap>
```

Change-Id: Ic3539c862e13d38e3bd0c198143cd0fabc3f02c5
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
packaging/hal-rootstrap-data-common.spec
rs_resource/HAL/hal-api-ml-rs.xml [new file with mode: 0644]

index 2f51a2f156b581b1beed5c86a02dcb4c4df6bf42..8209e9f4501268c682a5d410d7b4dfa11ffbe128 100644 (file)
@@ -193,6 +193,8 @@ Requires:   pkgconfig(hal-api-codec)
 BuildRequires: pkgconfig(hal-api-codec)
 Requires:      pkgconfig(hal-api-security)
 BuildRequires: pkgconfig(hal-api-security)
+Requires:      pkgconfig(hal-api-ml)
+BuildRequires: pkgconfig(hal-api-ml)
 %endif
 
 %if "%{WITH_DA}" == "0"
diff --git a/rs_resource/HAL/hal-api-ml-rs.xml b/rs_resource/HAL/hal-api-ml-rs.xml
new file mode 100644 (file)
index 0000000..3e202c0
--- /dev/null
@@ -0,0 +1,19 @@
+<?xml version="1.0"?>
+<rootstrap name="hal-api-ml">
+  <email></email>
+  <emulator>
+    <rpm accept="hal-api-ml" arch="i686"/>
+    <rpm accept="hal-api-ml-devel" arch="i686"/>
+  </emulator>
+  <target>
+    <rpm accept="hal-api-ml" arch="armv7l"/>
+    <rpm accept="hal-api-ml-devel" arch="armv7l"/>
+  </target>
+  <necessary>
+      <file>/usr/lib/hal/libhal-api-ml.so*</file>
+      <file>/usr/include/hal/hal-ml-interface*.h</file>
+      <file>/usr/include/hal/hal-ml-types.h</file>
+  </necessary>
+  <include_path>/usr/include/</include_path>
+  <library_path>/usr/lib</library_path>
+</rootstrap>