Skip to contentSkip to conversation

boot/optee-os: bump to version 3.12.0

PATCH New Etienne Carriere 2 participants 6 messages Feb 25, 2021 – Mar 6, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 boot/optee-os: bump to version 3.12.0

Bump OP-TEE OS package version to OP-TEE release 3.12.0.

---
 boot/optee-os/Config.in     | 4 ++--
 boot/optee-os/optee-os.hash | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
boot/optee-os/Config.in +2 -2
index 3076be6b42..8e833ecd75 100644
@@ -18,7 +18,7 @@ choice
 	  Select the version of OP-TEE OS you want to use
 
 config BR2_TARGET_OPTEE_OS_LATEST
-	bool "3.11.0"
+	bool "3.12.0"
 	help
 	  Use the latest release tag from the OP-TEE OS official Git
 	  repository.
@@ -50,7 +50,7 @@ endif
 
 config BR2_TARGET_OPTEE_OS_VERSION
 	string
-	default "3.11.0"	if BR2_TARGET_OPTEE_OS_LATEST
+	default "3.12.0"	if BR2_TARGET_OPTEE_OS_LATEST
 	default BR2_TARGET_OPTEE_OS_CUSTOM_REPO_VERSION \
 				if BR2_TARGET_OPTEE_OS_CUSTOM_GIT
 
boot/optee-os/optee-os.hash +2 -2
index 0d60cebea1..36bc1d9593 100644
@@ -1,4 +1,4 @@
-# From https://github.com/OP-TEE/optee_os/archive/3.11.0.tar.gz
-sha256 3c34eda1052fbb9ed36fcfdfaecfd2685023b9290670c1a5982f8a0457bfd2cb  optee-os-3.11.0.tar.gz
+# From https://github.com/OP-TEE/optee_os/archive/3.12.0/optee-os-3.12.0.tar.gz
+sha256 b13991099f25d00dac479db93b55034cb93d206e296f2c7aa9c42b92bca2c783  optee-os-3.12.0.tar.gz
 # Locally computed
 sha256 1247ee90858f4037b6cac63cbffddfed435d0d73c631b37d78c1e6e6ab3e5d1a  LICENSE
Signature · 1 line
2.17.1
#1 lore raw

PATCH 2/5 package/optee-benchmark: bump to version 3.12.0

Remove main-fix-typo patch since merged in OP-TEE OS 3.12.0 and bump OP-TEE Benchmark package version to OP-TEE release 3.12.0.

---
 .../optee-benchmark/0001-main-fix-typo.patch  | 55 -------------------
 package/optee-benchmark/optee-benchmark.hash  |  4 +-
 package/optee-benchmark/optee-benchmark.mk    |  2 +-
 3 files changed, 3 insertions(+), 58 deletions(-)
 delete mode 100644 package/optee-benchmark/0001-main-fix-typo.patch
package/optee-benchmark/0001-main-fix-typo.patch deleted +0 -55
deleted file mode 100644
index 8ad5a26f13..0000000000
@@ -1,55 +0,0 @@
-From ffa935dc881c394a824e063c8fde7dd102e06d8c Mon Sep 17 00:00:00 2001
-From: Romain Naour <[email protected]>
-Date: Fri, 8 May 2020 23:39:59 +0200
-Subject: [PATCH] main: fix typo
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-The function yaml_mapping_start_event_initialize()
-take yaml_mapping_style_t style as last argument:
-
-int yaml_mapping_start_event_initialize(
-	yaml_event_t *event,
-	const yaml_char_t *anchor,
-	const yaml_char_t *tag,
-	int implicit,
-	yaml_mapping_style_t style)
-
-Use YAML_ANY_MAPPING_STYLE instead of YAML_ANY_SEQUENCE_STYLE
-
-Fixes:
-main.c:173:5: error: implicit conversion from ?enum yaml_sequence_style_e? to ?yaml_mapping_style_t? {aka ?enum yaml_mapping_style_e?} [-Werror=enum-conversion]
-  173 |     YAML_ANY_SEQUENCE_STYLE))
-      |     ^~~~~~~~~~~~~~~~~~~~~~~
-
-Signed-off-by: Romain Naour <[email protected]>
----
- main.c | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/main.c b/main.c
-index 29a7c42..1685d3e 100644
---- a/main.c
-+++ b/main.c
-@@ -170,7 +170,7 @@ static bool init_emitter(FILE *ts_file)
- 	/* Mapping start */
- 	if (!yaml_mapping_start_event_initialize(&event,
- 				NULL, NULL , YAML_IMPLICIT,
--				YAML_ANY_SEQUENCE_STYLE))
-+				YAML_ANY_MAPPING_STYLE))
- 		ERROR_GOTO(emitter_delete,
- 			"Failed to initialize YAML mapping start event");
- 	if (!yaml_emitter_emit(&emitter, &event))
-@@ -263,7 +263,7 @@ static bool fill_timestamp(uint32_t core, uint64_t count, uint64_t addr,
- 	/* Mapping start */
- 	if (!yaml_mapping_start_event_initialize(&event,
- 				NULL, NULL , YAML_IMPLICIT,
--				YAML_ANY_SEQUENCE_STYLE))
-+				YAML_ANY_MAPPING_STYLE))
- 		ERROR_RETURN_FALSE(
- 			"Failed to initialize YAML mapping start event");
- 	if (!yaml_emitter_emit(&emitter, &event))
--- 
-2.25.4
-
package/optee-benchmark/optee-benchmark.hash +2 -2
index 12d1ddea88..144069b6f3 100644
@@ -1,4 +1,4 @@
-# From https://github.com/linaro-swg/optee_benchmark/archive/3.11.0.tar.gz
-sha256 34c314a5cda1e9e3b92f01759585722b44503d9eea19f6b936fc951f5acbac16 optee-benchmark-3.11.0.tar.gz
+# From https://github.com/linaro-swg/optee_benchmark/archive/3.12.0/optee-benchmark-3.12.0.tar.gz
+sha256 468635656fa483911cf605a96711d848f8e0f6b4a6137208226de364dee25fe4 optee-benchmark-3.12.0.tar.gz
 # Locally computed
 sha256 0571be5b739142dc3e40e0a4e7e30d4ab8bff0d4d606a3f2db2010745587d383  LICENSE
package/optee-benchmark/optee-benchmark.mk +1 -1
index f9d7cae302..c17a7045d4 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-OPTEE_BENCHMARK_VERSION = 3.11.0
+OPTEE_BENCHMARK_VERSION = 3.12.0
 OPTEE_BENCHMARK_SITE = $(call github,linaro-swg,optee_benchmark,$(OPTEE_BENCHMARK_VERSION))
 OPTEE_BENCHMARK_LICENSE = BSD-2-Clause
 OPTEE_BENCHMARK_LICENSE_FILES = LICENSE
Signature · 1 line
2.17.1
#2 lore raw

PATCH 3/5 package/optee-client: bump to version 3.12.0

In reply to Etienne Carriere

Remove local patch file since issue addressed in OP-TEE mainline since 3.12.0 and bump OP-TEE Client package version to OP-TEE release 3.12.0.

---
 .../0001-libckteec-replace-initializer.patch  | 93 -------------------
 package/optee-client/optee-client.hash        |  4 +-
 package/optee-client/optee-client.mk          |  2 +-
 3 files changed, 3 insertions(+), 96 deletions(-)
 delete mode 100644 package/optee-client/0001-libckteec-replace-initializer.patch
package/optee-client/0001-libckteec-replace-initializer.patch deleted +0 -93
deleted file mode 100644
index 21c75d142e..0000000000
@@ -1,93 +0,0 @@
-From 4fff84cebc05a238a8fed3c66d7dcde18f9574fb Mon Sep 17 00:00:00 2001
-From: Fabrice Fontaine <[email protected]>
-Date: Mon, 2 Nov 2020 08:04:14 +0100
-Subject: [PATCH] =?UTF-8?q?libckteec:=20replace=20{=C2=A0}=20initializer?=
- =?UTF-8?q?=20by=20{=C2=A00=20}?=
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Replace { } initializer by { 0 } to fix the following build failure with
-gcc 4.8:
-
-libckteec/src/pkcs11_processing.c: In function 'ck_create_object':
-libckteec/src/pkcs11_processing.c:22:9: error: missing initializer for field 'buffer' of 'struct serializer' [-Werror=missing-field-initializers]
-  struct serializer obj = { };
-         ^
-
-Fixes: http://autobuild.buildroot.org/results/a3d663adb943aee814180f01d6e153b3309be962
-Reviewed-by: Etienne Carriere <[email protected]>
-Signed-off-by: Fabrice Fontaine <[email protected]>
-[Upstream status: https://github.com/OP-TEE/optee_client/pull/230]
----
- libckteec/src/pkcs11_processing.c | 4 ++--
- libckteec/src/serialize_ck.c      | 4 ++--
- libckteec/src/serializer.c        | 4 ++--
- 3 files changed, 6 insertions(+), 6 deletions(-)
-
-diff --git a/libckteec/src/pkcs11_processing.c b/libckteec/src/pkcs11_processing.c
-index 2eb191f5..8eebe769 100644
---- a/libckteec/src/pkcs11_processing.c
-+++ b/libckteec/src/pkcs11_processing.c
-@@ -19,7 +19,7 @@ CK_RV ck_create_object(CK_SESSION_HANDLE session, CK_ATTRIBUTE_PTR attribs,
- 		       CK_ULONG count, CK_OBJECT_HANDLE_PTR handle)
- {
- 	CK_RV rv = CKR_GENERAL_ERROR;
--	struct serializer obj = { };
-+	struct serializer obj = { 0 };
- 	size_t ctrl_size = 0;
- 	TEEC_SharedMemory *ctrl = NULL;
- 	TEEC_SharedMemory *out_shm = NULL;
-@@ -114,7 +114,7 @@ CK_RV ck_encdecrypt_init(CK_SESSION_HANDLE session,
- {
- 	CK_RV rv = CKR_GENERAL_ERROR;
- 	TEEC_SharedMemory *ctrl = NULL;
--	struct serializer obj = { };
-+	struct serializer obj = { 0 };
- 	uint32_t session_handle = session;
- 	uint32_t key_handle = key;
- 	size_t ctrl_size = 0;
-diff --git a/libckteec/src/serialize_ck.c b/libckteec/src/serialize_ck.c
-index 1fc26ddc..0e5df90a 100644
---- a/libckteec/src/serialize_ck.c
-+++ b/libckteec/src/serialize_ck.c
-@@ -39,7 +39,7 @@ static CK_RV serialize_indirect_attribute(struct serializer *obj,
- 	CK_ATTRIBUTE_PTR attr = NULL;
- 	CK_ULONG count = 0;
- 	CK_RV rv = CKR_GENERAL_ERROR;
--	struct serializer obj2 = { };
-+	struct serializer obj2 = { 0 };
- 
- 	switch (attribute->type) {
- 	/* These are serialized each separately */
-@@ -263,7 +263,7 @@ static CK_RV serialize_mecha_aes_iv(struct serializer *obj,
- CK_RV serialize_ck_mecha_params(struct serializer *obj,
- 				CK_MECHANISM_PTR mechanism)
- {
--	CK_MECHANISM mecha = { };
-+	CK_MECHANISM mecha = { 0 };
- 	CK_RV rv = CKR_GENERAL_ERROR;
- 
- 	memset(obj, 0, sizeof(*obj));
-diff --git a/libckteec/src/serializer.c b/libckteec/src/serializer.c
-index 0e3df65c..d94932ba 100644
---- a/libckteec/src/serializer.c
-+++ b/libckteec/src/serializer.c
-@@ -14,7 +14,7 @@
- 
- CK_RV init_serial_object(struct serializer *obj)
- {
--	struct pkcs11_object_head head = { };
-+	struct pkcs11_object_head head = { 0 };
- 
- 	memset(obj, 0, sizeof(*obj));
- 
-@@ -23,7 +23,7 @@ CK_RV init_serial_object(struct serializer *obj)
- 
- void finalize_serial_object(struct serializer *obj)
- {
--	struct pkcs11_object_head head = { };
-+	struct pkcs11_object_head head = { 0 };
- 
- 	head.attrs_size = obj->size - sizeof(head);
- 	head.attrs_count = obj->item_count;
package/optee-client/optee-client.hash +2 -2
index d8e507dba7..253c29e22a 100644
@@ -1,4 +1,4 @@
-# From https://github.com/OP-TEE/optee_client/archive/3.11.0.tar.gz
-sha256 91f8ec191cd999ee666b6203ec376415d5dc90a8a9955f3d5fce1f48df77169b  optee-client-3.11.0.tar.gz
+# From https://github.com/OP-TEE/optee_client/archive/3.12.0/optee-client-3.12.0.tar.gz
+sha256 f75c45b40147217fa8f4a2ae1e4c06b24eb45d35167854fa9ad3ec3d6a73e858  optee-client-3.12.0.tar.gz
 # Locally computed
 sha256 fda8385993f112d7ca61b88b54ba5b4cbeec7e43a0f9b317d5186703c1985e8f  LICENSE
package/optee-client/optee-client.mk +1 -1
index 8108fc2130..0ae8426fc1 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-OPTEE_CLIENT_VERSION = 3.11.0
+OPTEE_CLIENT_VERSION = 3.12.0
 OPTEE_CLIENT_SITE = $(call github,OP-TEE,optee_client,$(OPTEE_CLIENT_VERSION))
 OPTEE_CLIENT_LICENSE = BSD-2-Clause
 OPTEE_CLIENT_LICENSE_FILES = LICENSE
Signature · 1 line
2.17.1
#3 lore raw

PATCH 4/5 package/optee-examples: bump to version 3.12.0

In reply to Etienne Carriere

Bump OP-TEE Examples package version to OP-TEE release 3.12.0.

---
 package/optee-examples/optee-examples.hash | 4 ++--
 package/optee-examples/optee-examples.mk   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
package/optee-examples/optee-examples.hash +2 -2
index 230d5d3ccf..d43534832a 100644
@@ -1,4 +1,4 @@
-# From https://github.com/linaro-swg/optee_examples/archive/3.11.0.tar.gz
-sha256 b910479a2d432014b6c49aafed27e26dd6f930e7c31d277c1500c1b60b4b3876  optee-examples-3.11.0.tar.gz
+# From https://github.com/linaro-swg/optee_examples/archive/3.12.0/optee-examples-3.12.0.tar.gz
+sha256 d3ae2cc4c51900a887f4c93e58571305bd37d60718a281953c3d775b3113f1f8  optee-examples-3.12.0.tar.gz
 # Locally computed
 sha256 6f1ef8449cb82ae79d2155605f7985bdf0f08e7ab5007de9b4362e8bf28733b9  LICENSE
package/optee-examples/optee-examples.mk +1 -1
index b6f77c72f0..ca7956e5bc 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-OPTEE_EXAMPLES_VERSION = 3.11.0
+OPTEE_EXAMPLES_VERSION = 3.12.0
 OPTEE_EXAMPLES_SITE = $(call github,linaro-swg,optee_examples,$(OPTEE_EXAMPLES_VERSION))
 OPTEE_EXAMPLES_LICENSE = BSD-2-Clause
 OPTEE_EXAMPLES_LICENSE_FILES = LICENSE
Signature · 1 line
2.17.1
#4 lore raw

PATCH 5/5 package/optee-test: bump to version 3.12.0

In reply to Etienne Carriere

Bump OP-TEE Test package version to OP-TEE release 3.12.0.

---
 package/optee-test/optee-test.hash | 4 ++--
 package/optee-test/optee-test.mk   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
package/optee-test/optee-test.hash +2 -2
index 52e2373bf7..0c789e1cd1 100644
@@ -1,4 +1,4 @@
-# From https://github.com/OP-TEE/optee_test/archive/3.11.0.tar.gz
-sha256 54d4b7e2ad22cd409ee8e25e990c1878690b1b5eb8843f649d12022888186a53  optee-test-3.11.0.tar.gz
+# From https://github.com/OP-TEE/optee_test/archive/3.12.0/optee-test-3.12.0.tar.gz
+sha256 beebdc98e95af2e7a20595f7d6ca716872efde1ec74a48ab07be599f21e8ad70  optee-test-3.12.0.tar.gz
 # Locally computed
 sha256 6e6810981f0ddab9e0d44399d0700a15d9f760a3c2843cc866659c2074139ae7  LICENSE.md
package/optee-test/optee-test.mk +1 -1
index 1f4f586672..2304b15925 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-OPTEE_TEST_VERSION = 3.11.0
+OPTEE_TEST_VERSION = 3.12.0
 OPTEE_TEST_SITE = $(call github,OP-TEE,optee_test,$(OPTEE_TEST_VERSION))
 OPTEE_TEST_LICENSE = GPL-2.0, BSD-2-Clause,
 OPTEE_TEST_LICENSE_FILES = LICENSE.md
Signature · 1 line
2.17.1
#5 lore raw

PATCH 1/5 boot/optee-os: bump to version 3.12.0

In reply to Etienne Carriere
Quoted 7 lines · On Thu, 25 Feb 2021 16:33:41 +0100 Etienne Carriere…

Bump OP-TEE OS package version to OP-TEE release 3.12.0.

---
 boot/optee-os/Config.in     | 4 ++--
 boot/optee-os/optee-os.hash | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

Thanks, series applied to next!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com