[PATCH 11/12] binman: ftest: Add test for xilinx_fsbl_auth etype
lukas.funke-oss at weidmueller.com
lukas.funke-oss at weidmueller.com
Thu Jun 29 16:59:24 CEST 2023
From: Lukas Funke <lukas.funke at weidmueller.com>
Add test for the 'xilinx_fsbl_auth' etype
Signed-off-by: Lukas Funke <lukas.funke at weidmueller.com>
---
tools/binman/ftest.py | 8 ++++++++
tools/binman/test/280_xilinx_fsb_auth.dts | 22 ++++++++++++++++++++++
2 files changed, 30 insertions(+)
create mode 100644 tools/binman/test/280_xilinx_fsb_auth.dts
diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py
index 3bd09d3fea..f0a7861649 100644
--- a/tools/binman/ftest.py
+++ b/tools/binman/ftest.py
@@ -6686,6 +6686,14 @@ fdt fdtmap Extract the devicetree blob from the fdtmap
['fit'])
self.assertIn("Node '/fit': Missing tool: 'mkimage'", str(e.exception))
+ def testXilinxFsblAuth(self):
+ """Test xilinx_fsbl_auth etype"""
+ data = tools.read_file(self.TestFile("key.key"))
+ self._MakeInputFile("psk.pem", data)
+ self._MakeInputFile("ssk.pem", data)
+ self._SetupPmuFwlElf()
+ self._SetupSplElf()
+ self._DoReadFileRealDtb('280_xilinx_fsb_auth.dts')
def testSplPubkeyDtb(self):
"""Test u_boot_spl_pubkey_dtb etype"""
diff --git a/tools/binman/test/280_xilinx_fsb_auth.dts b/tools/binman/test/280_xilinx_fsb_auth.dts
new file mode 100644
index 0000000000..2bfd36c22e
--- /dev/null
+++ b/tools/binman/test/280_xilinx_fsb_auth.dts
@@ -0,0 +1,22 @@
+// SPDX-License-Identifier: GPL-2.0+
+
+/dts-v1/;
+
+/ {
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ binman {
+ xilinx_fsbl_auth {
+
+ psk-filename = "psk.pem";
+ ssk-filename = "ssk.pem";
+ auth-params = "ppk_select=0", "spk_id=0x00000000";
+
+ u_boot_spl_nodtb {
+ };
+ u_boot_spl_dtb {
+ };
+ };
+ };
+};
--
2.30.2
More information about the U-Boot
mailing list