diff options
| author | Simon Glass <[email protected]> | 2026-03-06 11:12:47 -0700 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2026-03-18 06:14:16 -0600 |
| commit | b12f4bcf267c0eb80ef193f0eff246971812c575 (patch) | |
| tree | 98fb5e3e5ff0928ae296332c10f4f4ccdbfb6925 | |
| parent | 0a806c3eb6ab16daaba3caf967c0b67d608028c0 (diff) | |
binman: test: Move shared key files to test/security/
Move key.key and key.pem into the security/ subdirectory. These are
used by security, vendor, and capsule tests but security is the most
natural home for key material. Update all references.
Signed-off-by: Simon Glass <[email protected]>
| -rw-r--r-- | tools/binman/ftest.py | 32 | ||||
| -rw-r--r-- | tools/binman/test/security/key.key (renamed from tools/binman/test/key.key) | 0 | ||||
| -rw-r--r-- | tools/binman/test/security/key.pem (renamed from tools/binman/test/key.pem) | 0 |
3 files changed, 16 insertions, 16 deletions
diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py index 76d17e6d986..612237d0b41 100644 --- a/tools/binman/ftest.py +++ b/tools/binman/ftest.py @@ -6859,7 +6859,7 @@ fdt fdtmap Extract the devicetree blob from the fdtmap def testX509Cert(self): """Test creating an X509 certificate""" - keyfile = self.TestFile('key.key') + keyfile = self.TestFile('security/key.key') entry_args = { 'keyfile': keyfile, } @@ -6872,7 +6872,7 @@ fdt fdtmap Extract the devicetree blob from the fdtmap def testX509CertMissing(self): """Test that binman still produces an image if openssl is missing""" - keyfile = self.TestFile('key.key') + keyfile = self.TestFile('security/key.key') entry_args = { 'keyfile': 'keyfile', } @@ -7198,7 +7198,7 @@ fdt fdtmap Extract the devicetree blob from the fdtmap def testPackTiSecure(self): """Test that an image with a TI secured binary can be created""" - keyfile = self.TestFile('key.key') + keyfile = self.TestFile('security/key.key') entry_args = { 'keyfile': keyfile, } @@ -7208,7 +7208,7 @@ fdt fdtmap Extract the devicetree blob from the fdtmap def testPackTiSecureFirewall(self): """Test that an image with a TI secured binary can be created""" - keyfile = self.TestFile('key.key') + keyfile = self.TestFile('security/key.key') entry_args = { 'keyfile': keyfile, } @@ -7220,7 +7220,7 @@ fdt fdtmap Extract the devicetree blob from the fdtmap def testPackTiSecureFirewallMissingProperty(self): """Test that an image with a TI secured binary can be created""" - keyfile = self.TestFile('key.key') + keyfile = self.TestFile('security/key.key') entry_args = { 'keyfile': keyfile, } @@ -7232,7 +7232,7 @@ fdt fdtmap Extract the devicetree blob from the fdtmap def testPackTiSecureMissingTool(self): """Test that an image with a TI secured binary (non-functional) can be created when openssl is missing""" - keyfile = self.TestFile('key.key') + keyfile = self.TestFile('security/key.key') entry_args = { 'keyfile': keyfile, } @@ -7245,7 +7245,7 @@ fdt fdtmap Extract the devicetree blob from the fdtmap def testPackTiSecureROM(self): """Test that a ROM image with a TI secured binary can be created""" - keyfile = self.TestFile('key.key') + keyfile = self.TestFile('security/key.key') entry_args = { 'keyfile': keyfile, } @@ -7261,7 +7261,7 @@ fdt fdtmap Extract the devicetree blob from the fdtmap def testPackTiSecureROMCombined(self): """Test that a ROM image with a TI secured binary can be created""" - keyfile = self.TestFile('key.key') + keyfile = self.TestFile('security/key.key') entry_args = { 'keyfile': keyfile, } @@ -7331,7 +7331,7 @@ fdt fdtmap Extract the devicetree blob from the fdtmap def testSplPubkeyDtb(self): """Test u_boot_spl_pubkey_dtb etype""" - data = tools.read_file(self.TestFile("key.pem")) + data = tools.read_file(self.TestFile("security/key.pem")) self._MakeInputFile("key.crt", data) self._DoReadFileRealDtb('security/spl_pubkey_dtb.dts') image = control.images['image'] @@ -7353,7 +7353,7 @@ fdt fdtmap Extract the devicetree blob from the fdtmap """Test xilinx-bootgen etype""" bootgen = bintool.Bintool.create('bootgen') self._CheckBintool(bootgen) - data = tools.read_file(self.TestFile("key.key")) + data = tools.read_file(self.TestFile("security/key.key")) self._MakeInputFile("psk.pem", data) self._MakeInputFile("ssk.pem", data) self._SetupPmuFwlElf() @@ -7382,7 +7382,7 @@ fdt fdtmap Extract the devicetree blob from the fdtmap """Test xilinx-bootgen etype""" bootgen = bintool.Bintool.create('bootgen') self._CheckBintool(bootgen) - data = tools.read_file(self.TestFile("key.key")) + data = tools.read_file(self.TestFile("security/key.key")) self._MakeInputFile("psk.pem", data) self._MakeInputFile("ssk.pem", data) self._SetupPmuFwlElf() @@ -7414,7 +7414,7 @@ fdt fdtmap Extract the devicetree blob from the fdtmap def testXilinxBootgenMissing(self): """Test that binman still produces an image if bootgen is missing""" - data = tools.read_file(self.TestFile("key.key")) + data = tools.read_file(self.TestFile("security/key.key")) self._MakeInputFile("psk.pem", data) self._MakeInputFile("ssk.pem", data) self._SetupPmuFwlElf() @@ -7523,9 +7523,9 @@ fdt fdtmap Extract the devicetree blob from the fdtmap def testSignedCapsuleGen(self): """Test generation of EFI capsule""" - data = tools.read_file(self.TestFile("key.key")) + data = tools.read_file(self.TestFile("security/key.key")) self._MakeInputFile("key.key", data) - data = tools.read_file(self.TestFile("key.pem")) + data = tools.read_file(self.TestFile("security/key.pem")) self._MakeInputFile("key.crt", data) data = self._DoReadFile('capsule/signed.dts') @@ -7540,9 +7540,9 @@ fdt fdtmap Extract the devicetree blob from the fdtmap def testCapsuleGenSignedVer(self): """Test generation of signed EFI capsule with version information""" - data = tools.read_file(self.TestFile("key.key")) + data = tools.read_file(self.TestFile("security/key.key")) self._MakeInputFile("key.key", data) - data = tools.read_file(self.TestFile("key.pem")) + data = tools.read_file(self.TestFile("security/key.pem")) self._MakeInputFile("key.crt", data) data = self._DoReadFile('capsule/signed_ver.dts') diff --git a/tools/binman/test/key.key b/tools/binman/test/security/key.key index 9de3be14da8..9de3be14da8 100644 --- a/tools/binman/test/key.key +++ b/tools/binman/test/security/key.key diff --git a/tools/binman/test/key.pem b/tools/binman/test/security/key.pem index 20bd5a41ab2..20bd5a41ab2 100644 --- a/tools/binman/test/key.pem +++ b/tools/binman/test/security/key.pem |
