Add README 92/322392/2
authorDariusz Michaluk <d.michaluk@samsung.com>
Tue, 8 Apr 2025 09:29:32 +0000 (11:29 +0200)
committerDariusz Michaluk <d.michaluk@samsung.com>
Tue, 8 Apr 2025 10:35:33 +0000 (12:35 +0200)
Change-Id: Ibecc78e550c60d64aea4d2102630615e1c46b289

0001-Add-libteec-library-to-hal-rootstrap.patch [new file with mode: 0644]
README [new file with mode: 0644]

diff --git a/0001-Add-libteec-library-to-hal-rootstrap.patch b/0001-Add-libteec-library-to-hal-rootstrap.patch
new file mode 100644 (file)
index 0000000..83a5293
--- /dev/null
@@ -0,0 +1,57 @@
+From 451f98a9caf2eab9d03b20e19b9f0dad3f0fde7b Mon Sep 17 00:00:00 2001
+From: Jakub Wlostowski <j.wlostowski@samsung.com>
+Date: Wed, 26 Mar 2025 14:00:23 +0100
+Subject: [PATCH] Add libteec library to hal rootstrap
+
+Change-Id: I0b94f55dd98cf2f5dcda4780c732b3ea84b26849
+---
+ packaging/hal-rootstrap-data-common.spec |  2 ++
+ rs_resource/NativeAPI/libteec-rs.xml     | 23 +++++++++++++++++++++++
+ 2 files changed, 25 insertions(+)
+ create mode 100644 rs_resource/NativeAPI/libteec-rs.xml
+
+diff --git a/packaging/hal-rootstrap-data-common.spec b/packaging/hal-rootstrap-data-common.spec
+index 80fdcc2..56346ec 100644
+--- a/packaging/hal-rootstrap-data-common.spec
++++ b/packaging/hal-rootstrap-data-common.spec
+@@ -139,6 +139,8 @@ Requires:  pkgconfig(libtzplatform-config)
+ BuildRequires:        pkgconfig(libtzplatform-config)
+ Requires:     pkgconfig(tpl-egl)
+ BuildRequires:        pkgconfig(tpl-egl)
++Requires:     pkgconfig(tef-libteec)
++BuildRequires:  pkgconfig(tef-libteec)
+ Requires:     pkgconfig(libdrm)
+ BuildRequires:        pkgconfig(libdrm)
+diff --git a/rs_resource/NativeAPI/libteec-rs.xml b/rs_resource/NativeAPI/libteec-rs.xml
+new file mode 100644
+index 0000000..15b762d
+--- /dev/null
++++ b/rs_resource/NativeAPI/libteec-rs.xml
+@@ -0,0 +1,23 @@
++<?xml version="1.0"?>
++<rootstrap name="libteec">
++  <email></email>
++  <emulator>
++    <rpm accept="libteec" arch="i686"/>
++    <rpm accept="libteec-devel" arch="i686"/>
++  </emulator>
++  <target>
++    <rpm accept="libteec" arch="armv7l"/>
++    <rpm accept="libteec-devel" arch="armv7l"/>
++  </target>
++
++  <pkgconfig>
++    <file>tef-libteec.pc</file>
++  </pkgconfig>
++
++  <necessary>
++    <file>/usr/lib/libteec.so*</file>
++    <file>/usr/include/tef/tee_client_api.h</file>
++  </necessary>
++  <include_path>/usr/include/</include_path>
++  <library_path>/usr/lib</library_path>
++</rootstrap>
+-- 
+2.34.1
+
diff --git a/README b/README
new file mode 100644 (file)
index 0000000..3226a08
--- /dev/null
+++ b/README
@@ -0,0 +1,15 @@
+To build this project, few additional steps are required:
+
+1. Clone 'rootstrap-data-common' and 'rootstrap' projects from tizen.org (branch tizen)
+    https://review.tizen.org/gerrit/admin/repos/platform/hal/backend/rootstrap-data-common,general
+    https://review.tizen.org/gerrit/admin/repos/platform/hal/backend/rootstrap,general
+
+2. Apply below patch to 'rootstrap-data-common' (this patch will add libteec header/library to hal rootstrap)
+    https://review.tizen.org/gerrit/c/platform/hal/backend/rootstrap-data-common/+/321678
+    or local copy from main dir in case of inactive link (0001-Add-libteec-library-to-hal-rootstrap.patch)
+
+3. Build 'rootstrap-data-common' and after that 'rootstrap'
+
+4. Build 'security-keys'
+
+In case of GBM, above patch (or similar) should be applied in hal-roostrap-data-[gbm] project.