]> git.baikalelectronics.ru Git - uboot.git/commit
binman: add tests for sign option
authorIvan Mikhaylov <fr0st61te@gmail.com>
Wed, 8 Mar 2023 01:13:40 +0000 (01:13 +0000)
committerSimon Glass <sjg@chromium.org>
Tue, 14 Mar 2023 22:08:52 +0000 (16:08 -0600)
commit3b0ce8c776cedd99c067deae66bbea60b064c9d0
tree0904a0144a497b9d9a2c0ff3d9a880cb87d591da
parent9b540e419bad35f14ae199e6c343d19b9e7ba999
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>
tools/binman/control.py
tools/binman/entry.py
tools/binman/etype/fit.py
tools/binman/etype/section.py
tools/binman/ftest.py
tools/binman/test/280_fit_sign.dts [new file with mode: 0644]
tools/binman/test/281_sign_non_fit.dts [new file with mode: 0644]