diff options
author | Ivan Mikhaylov <fr0st61te@gmail.com> | 2023-03-08 04:13:40 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2023-03-15 01:08:52 +0300 |
commit | 5b34efe865887060e626fe4e78859dab591fc24a (patch) | |
tree | 0904a0144a497b9d9a2c0ff3d9a880cb87d591da /tools/binman/etype/fit.py | |
parent | 4023dc9c95ccb5bcb3719c1c10e3d4dce967e0a2 (diff) | |
download | u-boot-5b34efe865887060e626fe4e78859dab591fc24a.tar.xz |
binman: add tests for sign option
Add the test which provides sequence of actions:
1. create the image from binman dts
2. create public and private keys
3. add public key into dtb with fdt_add_pubkey
4. 1. sign FIT container with new sign option with extracting from
image
2. sign exact FIT container with replacing of it in image
5. check with fit_check_sign
Signed-off-by: Ivan Mikhaylov <fr0st61te@gmail.com>
Renumber test file from 277 to 280;
Move UpdateSignatures() to Entry base class;
Don't allow missing mkimage as it doesn't make sense;
Propagate --toolpath for CI;
Call mark_build_done() to avoid regenerating FIT:
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/etype/fit.py')
-rw-r--r-- | tools/binman/etype/fit.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/binman/etype/fit.py b/tools/binman/etype/fit.py index 3aea9865bf..c395706ece 100644 --- a/tools/binman/etype/fit.py +++ b/tools/binman/etype/fit.py @@ -847,9 +847,7 @@ class Entry_fit(Entry_section): args.append(fname) if self.mkimage.run_cmd(*args) is None: - # Bintool is missing; just use empty data as the output - self.record_missing_bintool(self.mkimage) - return + self.Raise("Missing tool: 'mkimage'") data = tools.read_file(fname) self.WriteData(data) |