]> code.ossystems Code Review - openembedded-core.git/commitdiff
classes/kernel-fitimage: add ability to add additional signing options
authorPaul Eggleton <paul.eggleton@microsoft.com>
Thu, 17 Dec 2020 02:51:38 +0000 (18:51 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 20 Dec 2020 00:03:01 +0000 (00:03 +0000)
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>
meta/classes/kernel-fitimage.bbclass

index 08b5db24b7e6ad080789cc0c295f1fae2a2953ac..9661b4ff78713467903ea6928a85d89a22b9af3a 100644 (file)
@@ -79,6 +79,9 @@ FIT_DESC ?= "U-Boot fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}"
 UBOOT_MKIMAGE ?= "uboot-mkimage"
 UBOOT_MKIMAGE_SIGN ?= "${UBOOT_MKIMAGE}"
 
+# Arguments passed to mkimage for signing
+UBOOT_MKIMAGE_SIGN_ARGS ?= ""
+
 #
 # Emit the fitImage ITS header
 #
@@ -529,7 +532,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
 }