]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
classes/kernel-fitimage: add ability to add additional signing options
authorPaul Eggleton <paul.eggleton@microsoft.com>
Fri, 14 Oct 2022 15:40:47 +0000 (17:40 +0200)
committerSteve Sakoman <steve@sakoman.com>
Fri, 21 Oct 2022 16:28:52 +0000 (06:28 -1000)
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 <paul.eggleton@microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 8fd7ee7414b45a1feeef7982af3583475902a677)
Signed-off-by: Massimiliano Minella <massimiliano.minella@se.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/kernel-fitimage.bbclass

index 7c0d93625be4208a23d4afc317d84ba593a3f0ad..e0dd2151676f1a58d805fc9d2bee80fde01c15fb 100644 (file)
@@ -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
 }