arm/optee: version uplift 3.11.0 -> 3.14.0
PATCH v2 1/1 arm/optee: version uplift 3.11.0 -> 3.14.0
Brief description of changes:
- Version uplift 3.11.0 -> 3.14.0.
- Removed OP-TEE patches that has already been accepted upstream.
- Added support for tee-supplicant plugin framework testing.
Tested on qemuarm64_secureboot:
$ xtest -l 15 $ optee-examples_*
Signed-off-by Sumit Garg <[email protected]>
---
Changes in v2:
- Fix bashism ("=" instead of "==") in optee-examples Makefile patch.
.../optee/optee-client_3.11.0.bb | 3 - .../optee/optee-client_3.14.0.bb | 3 + .../recipes-security/optee/optee-examples.inc | 9 +- .../0001-make-Pass-ldflags-during-link.patch | 103 ------------------ ...efault-cross-compiler-environment-se.patch | 84 ++++++++++++++ ...nable-plugins-installation-in-rootfs.patch | 37 +++++++ .../optee/optee-examples_3.11.0.bb | 4 - .../optee/optee-examples_3.14.0.bb | 4 + ...ide-empty-__getauxval-implementation.patch | 62 ----------- ...t-support-for-libnames-after-libgcc-.patch | 55 ---------- ...ke-sure-that-libutils-is-linked-seco.patch | 44 -------- .../recipes-security/optee/optee-os_3.11.0.bb | 11 -- .../recipes-security/optee/optee-os_3.14.0.bb | 8 ++ .../recipes-security/optee/optee-test.inc | 15 +-- ...Adjust-order-of-including-compiler.h.patch | 64 ----------- ...ake-remove-Wno-unsafe-loop-for-clang.patch | 31 ------ ...e-remove-Wmissing-noreturn-for-clang.patch | 31 ------ .../optee/optee-test_3.11.0.bb | 3 - .../optee/optee-test_3.14.0.bb | 3 + 19 files changed, 152 insertions(+), 422 deletions(-) delete mode 100644 meta-arm/recipes-security/optee/optee-client_3.11.0.bb create mode 100644 meta-arm/recipes-security/optee/optee-client_3.14.0.bb delete mode 100644 meta-arm/recipes-security/optee/optee-examples/0001-make-Pass-ldflags-during-link.patch create mode 100644 meta-arm/recipes-security/optee/optee-examples/0001-plugins-Honour-default-cross-compiler-environment-se.patch create mode 100644 meta-arm/recipes-security/optee/optee-examples/0002-Makefile-Enable-plugins-installation-in-rootfs.patch delete mode 100644 meta-arm/recipes-security/optee/optee-examples_3.11.0.bb create mode 100644 meta-arm/recipes-security/optee/optee-examples_3.14.0.bb delete mode 100644 meta-arm/recipes-security/optee/optee-os/0001-libutils-provide-empty-__getauxval-implementation.patch delete mode 100644 meta-arm/recipes-security/optee/optee-os/0002-link.mk-implement-support-for-libnames-after-libgcc-.patch delete mode 100644 meta-arm/recipes-security/optee/optee-os/0003-ta_dev_kit.mk-make-sure-that-libutils-is-linked-seco.patch delete mode 100644 meta-arm/recipes-security/optee/optee-os_3.11.0.bb create mode 100644 meta-arm/recipes-security/optee/optee-os_3.14.0.bb delete mode 100644 meta-arm/recipes-security/optee/optee-test/0001-host-xtest-Adjust-order-of-including-compiler.h.patch delete mode 100644 meta-arm/recipes-security/optee/optee-test/0002-make-remove-Wno-unsafe-loop-for-clang.patch delete mode 100644 meta-arm/recipes-security/optee/optee-test/0003-make-remove-Wmissing-noreturn-for-clang.patch delete mode 100644 meta-arm/recipes-security/optee/optee-test_3.11.0.bb create mode 100644 meta-arm/recipes-security/optee/optee-test_3.14.0.bb
meta-arm/recipes-security/optee/optee-client_3.11.0.bb deleted +0 -3
@@ -1,3 +0,0 @@ -require optee-client.inc - -SRCREV = "c0c925384c1d7e3558d27d2708857482952d7907"
meta-arm/recipes-security/optee/optee-client_3.14.0.bb new file +3 -0
@@ -0,0 +1,3 @@ +require optee-client.inc + +SRCREV = "06e1b32f6a7028e039c625b07cfc25fda0c17d53"
meta-arm/recipes-security/optee/optee-examples.inc +7 -2
@@ -12,7 +12,8 @@ inherit python3native require optee.inc SRC_URI = "git://github.com/linaro-swg/optee_examples.git \ - file://0001-make-Pass-ldflags-during-link.patch \ + file://0001-plugins-Honour-default-cross-compiler-environment-se.patch \ + file://0002-Makefile-Enable-plugins-installation-in-rootfs.patch \ " EXTRA_OEMAKE += "TA_DEV_KIT_DIR=${TA_DEV_KIT_DIR} \
@@ -32,11 +33,15 @@ do_compile[cleandirs] = "${B}" do_install () { mkdir -p ${D}${nonarch_base_libdir}/optee_armtz mkdir -p ${D}${bindir} + mkdir -p ${D}${libdir}/tee-supplicant/plugins install -D -p -m0755 ${B}/ca/* ${D}${bindir} install -D -p -m0444 ${B}/ta/* ${D}${nonarch_base_libdir}/optee_armtz + install -D -p -m0444 ${B}/plugins/* ${D}${libdir}/tee-supplicant/plugins } -FILES_${PN} += "${nonarch_base_libdir}/optee_armtz/" +FILES_${PN} += "${nonarch_base_libdir}/optee_armtz/ \ + ${libdir}/tee-supplicant/plugins/ \ + " # Imports machine specific configs from staging to build PACKAGE_ARCH = "${MACHINE_ARCH}"
meta-arm/recipes-security/optee/optee-examples/0001-make-Pass-ldflags-during-link.patch deleted +0 -103
103 lines not on this page · raw message
meta-arm/recipes-security/optee/optee-examples/0001-plugins-Honour-default-cross-compiler-environment-se.patch new file +84 -0
84 lines not on this page · raw message
meta-arm/recipes-security/optee/optee-examples/0002-Makefile-Enable-plugins-installation-in-rootfs.patch new file +37 -0
@@ -0,0 +1,37 @@ +From f4e5e74548d92258855434b550c58fe44993c148 Mon Sep 17 00:00:00 2001 +From: Sumit Garg <[email protected]> +Date: Tue, 20 Jul 2021 14:20:10 +0530 +Subject: [PATCH] Makefile: Enable plugins installation in rootfs + +Upstream-Status: Submitted [https://github.com/linaro-swg/optee_examples/pull/87] + +Signed-off-by: Sumit Garg <[email protected]> + +--- + Makefile | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/Makefile b/Makefile +index a275842..9359d95 100644 +--- a/Makefile ++++ b/Makefile +@@ -25,14 +25,19 @@ prepare-for-rootfs: examples + @mkdir -p $(OUTPUT_DIR) + @mkdir -p $(OUTPUT_DIR)/ta + @mkdir -p $(OUTPUT_DIR)/ca ++ @mkdir -p $(OUTPUT_DIR)/plugins + @for example in $(EXAMPLE_LIST); do \ + if [ -e $$example/host/optee_example_$$example ]; then \ + cp -p $$example/host/optee_example_$$example $(OUTPUT_DIR)/ca/; \ + fi; \ + cp -pr $$example/ta/*.ta $(OUTPUT_DIR)/ta/; \ ++ if [ $$example = plugins ]; then \ ++ cp -p plugins/syslog/*.plugin $(OUTPUT_DIR)/plugins/; \ ++ fi; \ + done + + prepare-for-rootfs-clean: + @rm -rf $(OUTPUT_DIR)/ta + @rm -rf $(OUTPUT_DIR)/ca ++ @rm -rf $(OUTPUT_DIR)/plugins + @rmdir --ignore-fail-on-non-empty $(OUTPUT_DIR) || test ! -e $(OUTPUT_DIR)
meta-arm/recipes-security/optee/optee-examples_3.11.0.bb deleted +0 -4
@@ -1,4 +0,0 @@ -require optee-examples.inc - -SRCREV = "9a7dc598591990349d88b4dba3a37aadd6851295" -
meta-arm/recipes-security/optee/optee-examples_3.14.0.bb new file +4 -0
@@ -0,0 +1,4 @@ +require optee-examples.inc + +SRCREV = "e9c870525af8f7e7fccf575a0ca5394ce55adcec" +
meta-arm/recipes-security/optee/optee-os/0001-libutils-provide-empty-__getauxval-implementation.patch deleted +0 -62
62 lines not on this page · raw message
meta-arm/recipes-security/optee/optee-os/0002-link.mk-implement-support-for-libnames-after-libgcc-.patch deleted +0 -55
55 lines not on this page · raw message
meta-arm/recipes-security/optee/optee-os/0003-ta_dev_kit.mk-make-sure-that-libutils-is-linked-seco.patch deleted +0 -44
44 lines not on this page · raw message
meta-arm/recipes-security/optee/optee-os_3.11.0.bb deleted +0 -11
@@ -1,11 +0,0 @@ -require optee-os.inc - -SRCREV = "c4def2a8262a03244d9a88461699b9b8e43c6b55" - -SRC_URI_append = " \ - file://0006-allow-setting-sysroot-for-libgcc-lookup.patch \ - file://0007-allow-setting-sysroot-for-clang.patch \ - file://0001-libutils-provide-empty-__getauxval-implementation.patch \ - file://0002-link.mk-implement-support-for-libnames-after-libgcc-.patch \ - file://0003-ta_dev_kit.mk-make-sure-that-libutils-is-linked-seco.patch \ -"
meta-arm/recipes-security/optee/optee-os_3.14.0.bb new file +8 -0
@@ -0,0 +1,8 @@ +require optee-os.inc + +SRCREV = "d21befa5e53eae9db469eba1685f5aa5c6f92c2f" + +SRC_URI_append = " \ + file://0006-allow-setting-sysroot-for-libgcc-lookup.patch \ + file://0007-allow-setting-sysroot-for-clang.patch \ +"
meta-arm/recipes-security/optee/optee-test.inc +6 -9
@@ -8,17 +8,9 @@ LIC_FILES_CHKSUM = "file://${S}/LICENSE.md;md5=daa2bcccc666345ab8940aab1315a4fa" inherit python3native ptest require optee.inc -# Linking fails on musl due to C++/threads -# https://github.com/OP-TEE/optee_test/issues/458#issuecomment-720540834 -# When upgraded we should be able to remove this limitation -COMPATIBLE_HOST_libc-musl = 'null' - DEPENDS = "optee-client optee-os python3-pycryptodome-native" SRC_URI = "git://github.com/OP-TEE/optee_test.git \ - file://0001-host-xtest-Adjust-order-of-including-compiler.h.patch \ - file://0002-make-remove-Wno-unsafe-loop-for-clang.patch \ - file://0003-make-remove-Wmissing-noreturn-for-clang.patch \ file://run-ptest \ "
@@ -36,6 +28,7 @@ do_compile() { # Top level makefile doesn't seem to handle parallel make gracefully oe_runmake xtest oe_runmake ta + oe_runmake test_plugin } do_compile[cleandirs] = "${B}"
@@ -46,9 +39,13 @@ do_install () { # default TEEC_LOAD_PATH is /lib mkdir -p ${D}${nonarch_base_libdir}/optee_armtz/ install -D -p -m0444 ${B}/ta/*/*.ta ${D}${nonarch_base_libdir}/optee_armtz/ + mkdir -p ${D}${libdir}/tee-supplicant/plugins + install -D -p -m0444 ${B}/supp_plugin/*.plugin ${D}${libdir}/tee-supplicant/plugins/ } -FILES_${PN} += "${nonarch_base_libdir}/optee_armtz/" +FILES_${PN} += "${nonarch_base_libdir}/optee_armtz/ \ + ${libdir}/tee-supplicant/plugins/ \ + " # Imports machine specific configs from staging to build PACKAGE_ARCH = "${MACHINE_ARCH}"
meta-arm/recipes-security/optee/optee-test/0001-host-xtest-Adjust-order-of-including-compiler.h.patch deleted +0 -64
64 lines not on this page · raw message
meta-arm/recipes-security/optee/optee-test/0002-make-remove-Wno-unsafe-loop-for-clang.patch deleted +0 -31
@@ -1,31 +0,0 @@ -From 438533ce9da1df0b7c7914e64b39ffdc1da1ab79 Mon Sep 17 00:00:00 2001 -From: Brett Warren <[email protected]> -Date: Thu, 8 Oct 2020 10:03:25 +0100 -Subject: [PATCH] make: remove -Wmissing-noreturn for clang - -When compiling when clang, -Wmissing-noreturn causes an error because -of non-compliant code. This option is removed to workaround this. - -Upstream-Status: Pending [https://github.com/OP-TEE/optee_test/issues/452] -Changed-Id: 71cb511904547d790d1ea98f93bf8e5a6afcb36d -Signed-off-by: Brett Warren <[email protected]> ---- - host/xtest/Makefile | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/host/xtest/Makefile b/host/xtest/Makefile -index 3c206b0..96746de 100644 ---- a/host/xtest/Makefile -+++ b/host/xtest/Makefile -@@ -169,7 +169,7 @@ CFLAGS += -Wall -Wcast-align -Werror \ - -Werror-implicit-function-declaration -Wextra -Wfloat-equal \ - -Wformat-nonliteral -Wformat-security -Wformat=2 -Winit-self \ - -Wmissing-declarations -Wmissing-format-attribute \ -- -Wmissing-include-dirs -Wmissing-noreturn \ -+ -Wmissing-include-dirs \ - -Wmissing-prototypes -Wnested-externs -Wpointer-arith \ - -Wshadow -Wstrict-prototypes -Wswitch-default \ - -Wwrite-strings \ --- -2.17.1 -
meta-arm/recipes-security/optee/optee-test/0003-make-remove-Wmissing-noreturn-for-clang.patch deleted +0 -31
@@ -1,31 +0,0 @@ -From ed5a9d9f7a3e9e14ca0e8aea59008124ee0e5f96 Mon Sep 17 00:00:00 2001 -From: Brett Warren <[email protected]> -Date: Thu, 8 Oct 2020 10:20:52 +0100 -Subject: [PATCH] make: remove -Wno-unsafe-loop for clang - -When compiling with clang, the -Wno-unsafe-loop-optimizations option -throws an error because clang doesn't recognise it. This option is -removed to workaround this. - -Upstream-Status: Pending [https://github.com/OP-TEE/optee_test/issues/452] -Change-Id: 5fe0892c73208aaffac8c9995cb3275936fb1ba6 -Signed-off-by: Brett Warren <[email protected]> ---- - host/xtest/Makefile | 1 - - 1 file changed, 1 deletion(-) - -diff --git a/host/xtest/Makefile b/host/xtest/Makefile -index 96746de..73731d0 100644 ---- a/host/xtest/Makefile -+++ b/host/xtest/Makefile -@@ -174,7 +174,6 @@ CFLAGS += -Wall -Wcast-align -Werror \ - -Wshadow -Wstrict-prototypes -Wswitch-default \ - -Wwrite-strings \ - -Wno-declaration-after-statement \ -- -Wno-unsafe-loop-optimizations \ - -Wno-missing-field-initializers -Wno-format-zero-length - endif - --- -2.17.1 -
meta-arm/recipes-security/optee/optee-test_3.11.0.bb deleted +0 -3
@@ -1,3 +0,0 @@ -require optee-test.inc - -SRCREV = "159e295d5cc3ad2275ab15fe544620f6604d4ba4"
meta-arm/recipes-security/optee/optee-test_3.14.0.bb new file +3 -0
@@ -0,0 +1,3 @@ +require optee-test.inc + +SRCREV = "f2eb88affbb7f028561b4fd5cbd049d5d704f741"
Signature · 1 line
2.25.1