diff options
author | Paul Eggleton <paul.eggleton@microsoft.com> | 2020-12-16 18:51:42 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-12-20 00:03:04 +0000 |
commit | 87b38ee1c14d5fa0d4ad8256b1828fb218951bdd (patch) | |
tree | 35a7d527a43bef965ec2011e2184c069b250fa98 /meta-selftest/classes | |
parent | b23d338176136cae7d3f0d9ce930b03158ecbbc8 (diff) | |
download | poky-87b38ee1c14d5fa0d4ad8256b1828fb218951bdd.tar.gz |
oe-selftest: fitimage: add test for signing FIT images
Add a new test to verify signing FIT images. Also includes testing for
the newly introduced FIT_SIGN_INDIVIDUAL, UBOOT_MKIMAGE,
UBOOT_MKIMAGE_SIGN, and UBOOT_MKIMAGE_SIGN_ARGS variables.
(From OE-Core rev: 3c054762278fd8c5dd827dbac15f4fa066e6c19e)
Signed-off-by: Paul Eggleton <paul.eggleton@microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-selftest/classes')
-rw-r--r-- | meta-selftest/classes/test-mkimage-wrapper.bbclass | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/meta-selftest/classes/test-mkimage-wrapper.bbclass b/meta-selftest/classes/test-mkimage-wrapper.bbclass new file mode 100644 index 0000000000..7c98d7b71e --- /dev/null +++ b/meta-selftest/classes/test-mkimage-wrapper.bbclass | |||
@@ -0,0 +1,19 @@ | |||
1 | # Class to test UBOOT_MKIMAGE and UBOOT_MKIMAGE_SIGN | ||
2 | # (in conjunction with kernel-fitimage.bbclass) | ||
3 | # | ||
4 | # SPDX-License-Identifier: MIT | ||
5 | # | ||
6 | |||
7 | UBOOT_MKIMAGE = "test_mkimage_wrapper" | ||
8 | UBOOT_MKIMAGE_SIGN = "test_mkimage_signing_wrapper" | ||
9 | |||
10 | test_mkimage_wrapper() { | ||
11 | echo "### uboot-mkimage wrapper message" | ||
12 | uboot-mkimage "$@" | ||
13 | } | ||
14 | |||
15 | test_mkimage_signing_wrapper() { | ||
16 | echo "### uboot-mkimage signing wrapper message" | ||
17 | uboot-mkimage "$@" | ||
18 | } | ||
19 | |||