summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Leitner <richard.leitner@skidata.com>2020-06-05 07:08:38 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-07-08 09:47:50 (GMT)
commit42fd2f8e4dcd1327956c3693a0f3c242d9504769 (patch)
tree39d014fd29cea18c0ba2f5f46675d99cec185620
parent577f1b0b2fba641106959758cd59250ea38d0a64 (diff)
downloadpoky-42fd2f8e4dcd1327956c3693a0f3c242d9504769.tar.gz
kernel-fitimage: introduce FIT_SIGN_ALG
make fitImage configuration signature algorithm selectable with FIT_SIGN_ALG. (From OE-Core rev: e24b27a2b49e97cec6153f2d642d17a901b8ba12) (From OE-Core rev: 12dceaba5a7e3afed2ccb43d0788e5b95c602951) Signed-off-by: Richard Leitner <richard.leitner@skidata.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Anuj Mittal <anuj.mittal@intel.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 1bcb09c..6cd1b76 100644
--- a/meta/classes/kernel-fitimage.bbclass
+++ b/meta/classes/kernel-fitimage.bbclass
@@ -53,6 +53,9 @@ UBOOT_MKIMAGE_DTCOPTS ??= ""
53# fitImage Hash Algo 53# fitImage Hash Algo
54FIT_HASH_ALG ?= "sha256" 54FIT_HASH_ALG ?= "sha256"
55 55
56# fitImage Signature Algo
57FIT_SIGN_ALG ?= "rsa2048"
58
56# 59#
57# Emit the fitImage ITS header 60# Emit the fitImage ITS header
58# 61#
@@ -246,6 +249,7 @@ EOF
246fitimage_emit_section_config() { 249fitimage_emit_section_config() {
247 250
248 conf_csum="${FIT_HASH_ALG}" 251 conf_csum="${FIT_HASH_ALG}"
252 conf_sign_algo="${FIT_SIGN_ALG}"
249 if [ -n "${UBOOT_SIGN_ENABLE}" ] ; then 253 if [ -n "${UBOOT_SIGN_ENABLE}" ] ; then
250 conf_sign_keyname="${UBOOT_SIGN_KEYNAME}" 254 conf_sign_keyname="${UBOOT_SIGN_KEYNAME}"
251 fi 255 fi
@@ -327,7 +331,7 @@ EOF
327 331
328 cat << EOF >> ${1} 332 cat << EOF >> ${1}
329 signature@1 { 333 signature@1 {
330 algo = "${conf_csum},rsa2048"; 334 algo = "${conf_csum},${conf_sign_algo}";
331 key-name-hint = "${conf_sign_keyname}"; 335 key-name-hint = "${conf_sign_keyname}";
332 ${sign_line} 336 ${sign_line}
333 }; 337 };