From 87d4d595d2a943c9e158b52696f53d420ad08221 Mon Sep 17 00:00:00 2001 From: Dariusz Michaluk Date: Tue, 8 Apr 2025 11:29:32 +0200 Subject: [PATCH] Add README Change-Id: Ibecc78e550c60d64aea4d2102630615e1c46b289 --- ...Add-libteec-library-to-hal-rootstrap.patch | 57 +++++++++++++++++++ README | 15 +++++ 2 files changed, 72 insertions(+) create mode 100644 0001-Add-libteec-library-to-hal-rootstrap.patch create mode 100644 README diff --git a/0001-Add-libteec-library-to-hal-rootstrap.patch b/0001-Add-libteec-library-to-hal-rootstrap.patch new file mode 100644 index 0000000..83a5293 --- /dev/null +++ b/0001-Add-libteec-library-to-hal-rootstrap.patch @@ -0,0 +1,57 @@ +From 451f98a9caf2eab9d03b20e19b9f0dad3f0fde7b Mon Sep 17 00:00:00 2001 +From: Jakub Wlostowski +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 @@ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ tef-libteec.pc ++ ++ ++ ++ /usr/lib/libteec.so* ++ /usr/include/tef/tee_client_api.h ++ ++ /usr/include/ ++ /usr/lib ++ +-- +2.34.1 + diff --git a/README b/README new file mode 100644 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. -- 2.34.1