diff options
author | Sean Anderson <sean.anderson@seco.com> | 2022-10-21 19:37:21 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-10-26 12:28:40 +0100 |
commit | c755c37efbab43d7d06dc9b6c139a181d3757b0c (patch) | |
tree | 7be8c15dc45d03330bbb1cce28954917e1296658 /meta/classes-recipe/uboot-sign.bbclass | |
parent | 6100383cc4695d667137ce278406dea10e241339 (diff) | |
download | poky-c755c37efbab43d7d06dc9b6c139a181d3757b0c.tar.gz |
uboot-sign: Fix using wrong KEY_REQ_ARGS
When generating our SPL-verifying certificate, we use FIT_KEY_REQ_ARGS,
which is intended for the U-Boot-verifying certificate. Instead, use
UBOOT_FIT_KEY_REQ_ARGS.
Fixes: 0e6b0fefa0 ("u-boot: Use a different Key for SPL signing")
(From OE-Core rev: a2d939ccb182a1ad29280d236b9f9e1d09527af1)
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/uboot-sign.bbclass')
-rw-r--r-- | meta/classes-recipe/uboot-sign.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-recipe/uboot-sign.bbclass b/meta/classes-recipe/uboot-sign.bbclass index debbf23ec6..4b5912a01d 100644 --- a/meta/classes-recipe/uboot-sign.bbclass +++ b/meta/classes-recipe/uboot-sign.bbclass | |||
@@ -298,7 +298,7 @@ do_uboot_generate_rsa_keys() { | |||
298 | "${UBOOT_FIT_SIGN_NUMBITS}" | 298 | "${UBOOT_FIT_SIGN_NUMBITS}" |
299 | 299 | ||
300 | echo "Generating certificate for signing U-Boot fitImage" | 300 | echo "Generating certificate for signing U-Boot fitImage" |
301 | openssl req ${FIT_KEY_REQ_ARGS} "${UBOOT_FIT_KEY_SIGN_PKCS}" \ | 301 | openssl req ${UBOOT_FIT_KEY_REQ_ARGS} "${UBOOT_FIT_KEY_SIGN_PKCS}" \ |
302 | -key "${SPL_SIGN_KEYDIR}/${SPL_SIGN_KEYNAME}".key \ | 302 | -key "${SPL_SIGN_KEYDIR}/${SPL_SIGN_KEYNAME}".key \ |
303 | -out "${SPL_SIGN_KEYDIR}/${SPL_SIGN_KEYNAME}".crt | 303 | -out "${SPL_SIGN_KEYDIR}/${SPL_SIGN_KEYNAME}".crt |
304 | fi | 304 | fi |