From fd39b936b03a6416e7a66408c47578daa2a08cf1 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Fri, 14 Oct 2022 17:40:47 +0200 Subject: [PATCH] classes/kernel-fitimage: add ability to add additional signing options Add a UBOOT_MKIMAGE_SIGN_ARGS variable to enable passing additional options to uboot-mkimage when it is run the second time to perform signing. Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie (cherry picked from commit 8fd7ee7414b45a1feeef7982af3583475902a677) Signed-off-by: Massimiliano Minella Signed-off-by: Steve Sakoman --- meta/classes/kernel-fitimage.bbclass | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meta/classes/kernel-fitimage.bbclass b/meta/classes/kernel-fitimage.bbclass index 7c0d93625be..e0dd2151676 100644 --- a/meta/classes/kernel-fitimage.bbclass +++ b/meta/classes/kernel-fitimage.bbclass @@ -59,6 +59,9 @@ FIT_SIGN_ALG ?= "rsa2048" # fitImage Padding Algo FIT_PAD_ALG ?= "pkcs-1.5" +# Arguments passed to mkimage for signing +UBOOT_MKIMAGE_SIGN_ARGS ?= "" + # # Emit the fitImage ITS header # @@ -479,7 +482,8 @@ fitimage_assemble() { ${@'-D "${UBOOT_MKIMAGE_DTCOPTS}"' if len('${UBOOT_MKIMAGE_DTCOPTS}') else ''} \ -F -k "${UBOOT_SIGN_KEYDIR}" \ $add_key_to_u_boot \ - -r arch/${ARCH}/boot/${2} + -r arch/${ARCH}/boot/${2} \ + ${UBOOT_MKIMAGE_SIGN_ARGS} fi } -- 2.47.3