diff options
author | AKASHI Takahiro <takahiro.akashi@linaro.org> | 2022-02-09 19:10:38 +0900 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-02-11 20:07:55 +0100 |
commit | bad58cb308acdf739e855e3336dfdf1a8d7b08a4 (patch) | |
tree | 8ec0e9c67429f1f15e3687bfef7e1912f8da7b18 /test/py/tests/test_efi_capsule/capsule_defs.py | |
parent | a62eb06f7c2b80e80a1f14f8950c3fb6958a97d4 (diff) |
test/py: efi_capsule: add image authentication test
Add a couple of test cases against capsule image authentication
for capsule-on-disk, where only a signed capsule file with the verified
signature will be applied to the system.
Due to the difficulty of embedding a public key (esl file) in U-Boot
binary during pytest setup time, all the keys/certificates are pre-created.
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'test/py/tests/test_efi_capsule/capsule_defs.py')
-rw-r--r-- | test/py/tests/test_efi_capsule/capsule_defs.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/py/tests/test_efi_capsule/capsule_defs.py b/test/py/tests/test_efi_capsule/capsule_defs.py index 4fd6353c20..59b40f11bd 100644 --- a/test/py/tests/test_efi_capsule/capsule_defs.py +++ b/test/py/tests/test_efi_capsule/capsule_defs.py @@ -3,3 +3,8 @@ # Directories CAPSULE_DATA_DIR = '/EFI/CapsuleTestData' CAPSULE_INSTALL_DIR = '/EFI/UpdateCapsule' + +# v1.5.1 or earlier of efitools has a bug in sha256 calculation, and +# you need build a newer version on your own. +# The path must terminate with '/' if it is not null. +EFITOOLS_PATH = '' |