summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorLUIS ENRIQUEZ <lenriquez389@gmail.com>2022-07-22 11:50:17 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-08 16:23:34 +0100
commite4946bd39eed9f4127e55c369bdbd9f35d832d9d (patch)
tree0d3f4e960b7d2bcf904adb143dd72abbe4978cfd /meta
parent97810ff2d785693f66a128bd3bfd71783004db49 (diff)
downloadpoky-e4946bd39eed9f4127e55c369bdbd9f35d832d9d.tar.gz
kernel-fitimage.bbclass: add padding algorithm property in config nodes
This allows choosing padding algorithm when building fitImage. It may be pkcs-1.5 or pss. (From OE-Core rev: 152765b74c77b4da102fce9c4c61a667e71f26a1) Signed-off-by: LUIS ENRIQUEZ <luis.enriquez@se.com> From: LUIS ENRIQUEZ <luis.enriquez@se.com> 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/kernel-fitimage.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/kernel-fitimage.bbclass b/meta/classes/kernel-fitimage.bbclass
index 5f5e9dd444..7c0d93625b 100644
--- a/meta/classes/kernel-fitimage.bbclass
+++ b/meta/classes/kernel-fitimage.bbclass
@@ -56,6 +56,9 @@ FIT_HASH_ALG ?= "sha256"
56# fitImage Signature Algo 56# fitImage Signature Algo
57FIT_SIGN_ALG ?= "rsa2048" 57FIT_SIGN_ALG ?= "rsa2048"
58 58
59# fitImage Padding Algo
60FIT_PAD_ALG ?= "pkcs-1.5"
61
59# 62#
60# Emit the fitImage ITS header 63# Emit the fitImage ITS header
61# 64#
@@ -250,6 +253,7 @@ fitimage_emit_section_config() {
250 253
251 conf_csum="${FIT_HASH_ALG}" 254 conf_csum="${FIT_HASH_ALG}"
252 conf_sign_algo="${FIT_SIGN_ALG}" 255 conf_sign_algo="${FIT_SIGN_ALG}"
256 conf_padding_algo="${FIT_PAD_ALG}"
253 if [ "${UBOOT_SIGN_ENABLE}" = "1" ] ; then 257 if [ "${UBOOT_SIGN_ENABLE}" = "1" ] ; then
254 conf_sign_keyname="${UBOOT_SIGN_KEYNAME}" 258 conf_sign_keyname="${UBOOT_SIGN_KEYNAME}"
255 fi 259 fi
@@ -333,6 +337,7 @@ EOF
333 signature-1 { 337 signature-1 {
334 algo = "${conf_csum},${conf_sign_algo}"; 338 algo = "${conf_csum},${conf_sign_algo}";
335 key-name-hint = "${conf_sign_keyname}"; 339 key-name-hint = "${conf_sign_keyname}";
340 padding = "${conf_padding_algo}";
336 ${sign_line} 341 ${sign_line}
337 }; 342 };
338EOF 343EOF