@@ -1326,6 +1326,7 @@ cmd_binman = $(srctree)/tools/binman/binman $(if $(BINMAN_DEBUG),-D) \
-I arch/$(ARCH)/dts -a of-list=$(CONFIG_OF_LIST) \
$(foreach f,$(BINMAN_INDIRS),-I $(f)) \
-a atf-bl31-path=${BL31} \
+ -a op-tee-path=${TEE} \
-a opensbi-path=${OPENSBI} \
-a default-dt=$(default_dt) \
-a scp-path=$(SCP) \
@@ -933,6 +933,19 @@ binman.
+Entry: op-tee: Open Portable Trusted Execution Environment (OP-TEE) blob
+------------------------------------------------------------------------
+
+Properties / Entry arguments:
+ - op-tee-path: Filename of file to read into entry. This is typically
+ called tee.elf
+
+This entry holds the OP-TEE Elf file, typically started by U-Boot SPL.
+See the U-Boot README for your architecture or board for how to use it. See
+https://https://www.op-tee.org/ for more information about OP-TEE.
+
+
+
Entry: opensbi: RISC-V OpenSBI fw_dynamic blob
----------------------------------------------
new file mode 100644
@@ -0,0 +1,23 @@
+# SPDX-License-Identifier: GPL-2.0+
+# Copyright 2022 Google LLC
+# Written by Simon Glass <sjg@chromium.org>
+#
+# Entry-type module for Open Portable Trusted Execution Environment (OP-TEE)
+#
+
+from binman.etype.blob_named_by_arg import Entry_blob_named_by_arg
+
+class Entry_op_tee(Entry_blob_named_by_arg):
+ """Open Portable Trusted Execution Environment (OP-TEE) blob
+
+ Properties / Entry arguments:
+ - op-tee-path: Filename of file to read into entry. This is typically
+ called tee.elf
+
+ This entry holds the OP-TEE Elf file, typically started by U-Boot SPL.
+ See the U-Boot README for your architecture or board for how to use it. See
+ https://https://www.op-tee.org/ for more information about OP-TEE.
+ """
+ def __init__(self, section, etype, node):
+ super().__init__(section, etype, node, 'op-tee')
+ self.external = True
@@ -33,3 +33,7 @@ k3-rti-wdt-firmware:
If CONFIG_WDT_K3_RTI_LOAD_FW is enabled, a firmware image is needed for
the R5F core(s) to trigger the system reset. One possible source is
https://github.com/siemens/k3-rti-wdt.
+
+op-tee:
+See the documentation for your board. You may need to build Open Portable
+Trusted Execution Environment (OP-TEE) with TEE=/path/to/tee.elf
Add support for an Open Portable Trusted Execution Environment (OP-TEE) blob which is used with ARM Trusted Firmware. Note: This is a placeholder patch as Roger Quadros has already posted one: https://patchwork.ozlabs.org/project/uboot/patch/20220204130031.24610-1-rogerq@kernel.org/ Signed-off-by: Simon Glass <sjg@chromium.org> --- Makefile | 1 + tools/binman/entries.rst | 13 +++++++++++++ tools/binman/etype/op_tee.py | 23 +++++++++++++++++++++++ tools/binman/missing-blob-help | 4 ++++ 4 files changed, 41 insertions(+) create mode 100644 tools/binman/etype/op_tee.py