summaryrefslogtreecommitdiffstats
path: root/meta-selftest/classes/test-mkimage-wrapper.bbclass
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@microsoft.com>2020-12-14 01:29:56 +0000
committerPaul Eggleton <paul.eggleton@linux.microsoft.com>2020-12-16 18:44:51 -0800
commit986494b3b6b35d43bd5b91f5f9b78c727da8ba9e (patch)
tree83881abf132d1e93c6469fe7db621830951f64a6 /meta-selftest/classes/test-mkimage-wrapper.bbclass
parentf4febec53413964bd192043df28d0c9a82181f94 (diff)
downloadopenembedded-core-contrib-paule/fitimage.tar.gz
oe-selftest: fitimage: add test for signing FIT imagespaule/fitimage
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>
Diffstat (limited to 'meta-selftest/classes/test-mkimage-wrapper.bbclass')
-rw-r--r--meta-selftest/classes/test-mkimage-wrapper.bbclass19
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 "$@"
+}
+