diff options
| author | Paul Eggleton <paul.eggleton@microsoft.com> | 2022-10-14 17:40:47 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-10-27 16:54:43 +0100 |
| commit | 8ce85b6c6c00616ba52e4616c707670643255b10 (patch) | |
| tree | 034a6be5bd5c08e7b84be177fa4421cdafeec33d /meta/classes | |
| parent | bff6562223f646404842ae1631a9df17158808b8 (diff) | |
| download | poky-8ce85b6c6c00616ba52e4616c707670643255b10.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: fd39b936b03a6416e7a66408c47578daa2a08cf1)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
| -rw-r--r-- | meta/classes/kernel-fitimage.bbclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/kernel-fitimage.bbclass b/meta/classes/kernel-fitimage.bbclass index 7c0d93625b..e0dd215167 100644 --- a/meta/classes/kernel-fitimage.bbclass +++ b/meta/classes/kernel-fitimage.bbclass | |||
| @@ -59,6 +59,9 @@ FIT_SIGN_ALG ?= "rsa2048" | |||
| 59 | # fitImage Padding Algo | 59 | # fitImage Padding Algo |
| 60 | FIT_PAD_ALG ?= "pkcs-1.5" | 60 | FIT_PAD_ALG ?= "pkcs-1.5" |
| 61 | 61 | ||
| 62 | # Arguments passed to mkimage for signing | ||
| 63 | UBOOT_MKIMAGE_SIGN_ARGS ?= "" | ||
| 64 | |||
| 62 | # | 65 | # |
| 63 | # Emit the fitImage ITS header | 66 | # Emit the fitImage ITS header |
| 64 | # | 67 | # |
| @@ -479,7 +482,8 @@ fitimage_assemble() { | |||
| 479 | ${@'-D "${UBOOT_MKIMAGE_DTCOPTS}"' if len('${UBOOT_MKIMAGE_DTCOPTS}') else ''} \ | 482 | ${@'-D "${UBOOT_MKIMAGE_DTCOPTS}"' if len('${UBOOT_MKIMAGE_DTCOPTS}') else ''} \ |
| 480 | -F -k "${UBOOT_SIGN_KEYDIR}" \ | 483 | -F -k "${UBOOT_SIGN_KEYDIR}" \ |
| 481 | $add_key_to_u_boot \ | 484 | $add_key_to_u_boot \ |
| 482 | -r arch/${ARCH}/boot/${2} | 485 | -r arch/${ARCH}/boot/${2} \ |
| 486 | ${UBOOT_MKIMAGE_SIGN_ARGS} | ||
| 483 | fi | 487 | fi |
| 484 | } | 488 | } |
| 485 | 489 | ||
