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:01 +0000 |
commit | 3c054762278fd8c5dd827dbac15f4fa066e6c19e (patch) | |
tree | f219e82ae5fc5d6ecafff1b9c542ea9c9426e561 /meta-selftest/classes | |
parent | 1d75a67efe968f1d9161b64e2b7b2d3cf482c968 (diff) | |
download | openembedded-core-contrib-3c054762278fd8c5dd827dbac15f4fa066e6c19e.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.
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 @@ +# Class to test UBOOT_MKIMAGE and UBOOT_MKIMAGE_SIGN +# (in conjunction with kernel-fitimage.bbclass) +# +# SPDX-License-Identifier: MIT +# + +UBOOT_MKIMAGE = "test_mkimage_wrapper" +UBOOT_MKIMAGE_SIGN = "test_mkimage_signing_wrapper" + +test_mkimage_wrapper() { + echo "### uboot-mkimage wrapper message" + uboot-mkimage "$@" +} + +test_mkimage_signing_wrapper() { + echo "### uboot-mkimage signing wrapper message" + uboot-mkimage "$@" +} + |