diff options
| author | Sean Anderson <sean.anderson@seco.com> | 2022-10-21 19:37:21 -0400 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-11-10 14:39:24 +0000 |
| commit | 21343a3b2d691c992522d2c1f5018b7ddfc55e43 (patch) | |
| tree | a77ac5e007e802c0dbad9213ca34381a0012af56 /meta | |
| parent | c8002205ffe0d0c73221196f3470f40309a1243e (diff) | |
| download | poky-21343a3b2d691c992522d2c1f5018b7ddfc55e43.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: a066246170af979b29945c45b436228f5dbba121)
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit a2d939ccb182a1ad29280d236b9f9e1d09527af1)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/classes/uboot-sign.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/uboot-sign.bbclass b/meta/classes/uboot-sign.bbclass index eecdec9160..6bb4ddc600 100644 --- a/meta/classes/uboot-sign.bbclass +++ b/meta/classes/uboot-sign.bbclass | |||
| @@ -292,7 +292,7 @@ do_uboot_generate_rsa_keys() { | |||
| 292 | "${UBOOT_FIT_SIGN_NUMBITS}" | 292 | "${UBOOT_FIT_SIGN_NUMBITS}" |
| 293 | 293 | ||
| 294 | echo "Generating certificate for signing U-Boot fitImage" | 294 | echo "Generating certificate for signing U-Boot fitImage" |
| 295 | openssl req ${FIT_KEY_REQ_ARGS} "${UBOOT_FIT_KEY_SIGN_PKCS}" \ | 295 | openssl req ${UBOOT_FIT_KEY_REQ_ARGS} "${UBOOT_FIT_KEY_SIGN_PKCS}" \ |
| 296 | -key "${SPL_SIGN_KEYDIR}/${SPL_SIGN_KEYNAME}".key \ | 296 | -key "${SPL_SIGN_KEYDIR}/${SPL_SIGN_KEYNAME}".key \ |
| 297 | -out "${SPL_SIGN_KEYDIR}/${SPL_SIGN_KEYNAME}".crt | 297 | -out "${SPL_SIGN_KEYDIR}/${SPL_SIGN_KEYNAME}".crt |
| 298 | fi | 298 | fi |
