summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@microsoft.com>2020-12-16 18:51:38 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-12-20 00:03:04 +0000
commit5a2558543703ad19fefd9889a46af939e3f5cb71 (patch)
tree3f3410d57fd20cdb4eff2784491f2ad15e1ebe0b
parentecbf182e8938f45b677e919b3c7a1f73d974cb35 (diff)
downloadpoky-5a2558543703ad19fefd9889a46af939e3f5cb71.tar.gz
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. (From OE-Core rev: 8fd7ee7414b45a1feeef7982af3583475902a677) Signed-off-by: Paul Eggleton <paul.eggleton@microsoft.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/kernel-fitimage.bbclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/kernel-fitimage.bbclass b/meta/classes/kernel-fitimage.bbclass
index 08b5db24b7..9661b4ff78 100644
--- a/meta/classes/kernel-fitimage.bbclass
+++ b/meta/classes/kernel-fitimage.bbclass
@@ -79,6 +79,9 @@ FIT_DESC ?= "U-Boot fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}"
79UBOOT_MKIMAGE ?= "uboot-mkimage" 79UBOOT_MKIMAGE ?= "uboot-mkimage"
80UBOOT_MKIMAGE_SIGN ?= "${UBOOT_MKIMAGE}" 80UBOOT_MKIMAGE_SIGN ?= "${UBOOT_MKIMAGE}"
81 81
82# Arguments passed to mkimage for signing
83UBOOT_MKIMAGE_SIGN_ARGS ?= ""
84
82# 85#
83# Emit the fitImage ITS header 86# Emit the fitImage ITS header
84# 87#
@@ -529,7 +532,8 @@ fitimage_assemble() {
529 ${@'-D "${UBOOT_MKIMAGE_DTCOPTS}"' if len('${UBOOT_MKIMAGE_DTCOPTS}') else ''} \ 532 ${@'-D "${UBOOT_MKIMAGE_DTCOPTS}"' if len('${UBOOT_MKIMAGE_DTCOPTS}') else ''} \
530 -F -k "${UBOOT_SIGN_KEYDIR}" \ 533 -F -k "${UBOOT_SIGN_KEYDIR}" \
531 $add_key_to_u_boot \ 534 $add_key_to_u_boot \
532 -r arch/${ARCH}/boot/${2} 535 -r arch/${ARCH}/boot/${2} \
536 ${UBOOT_MKIMAGE_SIGN_ARGS}
533 fi 537 fi
534} 538}
535 539