mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
kernel-fitimage: introduce FIT_SIGN_ALG
make fitImage configuration signature algorithm selectable with FIT_SIGN_ALG. (From OE-Core rev: e24b27a2b49e97cec6153f2d642d17a901b8ba12) 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>
This commit is contained in:
committed by
Richard Purdie
parent
1b97c75552
commit
4506cb4e34
@@ -53,6 +53,9 @@ UBOOT_MKIMAGE_DTCOPTS ??= ""
|
|||||||
# fitImage Hash Algo
|
# fitImage Hash Algo
|
||||||
FIT_HASH_ALG ?= "sha256"
|
FIT_HASH_ALG ?= "sha256"
|
||||||
|
|
||||||
|
# fitImage Signature Algo
|
||||||
|
FIT_SIGN_ALG ?= "rsa2048"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Emit the fitImage ITS header
|
# Emit the fitImage ITS header
|
||||||
#
|
#
|
||||||
@@ -246,6 +249,7 @@ EOF
|
|||||||
fitimage_emit_section_config() {
|
fitimage_emit_section_config() {
|
||||||
|
|
||||||
conf_csum="${FIT_HASH_ALG}"
|
conf_csum="${FIT_HASH_ALG}"
|
||||||
|
conf_sign_algo="${FIT_SIGN_ALG}"
|
||||||
if [ -n "${UBOOT_SIGN_ENABLE}" ] ; then
|
if [ -n "${UBOOT_SIGN_ENABLE}" ] ; then
|
||||||
conf_sign_keyname="${UBOOT_SIGN_KEYNAME}"
|
conf_sign_keyname="${UBOOT_SIGN_KEYNAME}"
|
||||||
fi
|
fi
|
||||||
@@ -327,7 +331,7 @@ EOF
|
|||||||
|
|
||||||
cat << EOF >> ${1}
|
cat << EOF >> ${1}
|
||||||
signature@1 {
|
signature@1 {
|
||||||
algo = "${conf_csum},rsa2048";
|
algo = "${conf_csum},${conf_sign_algo}";
|
||||||
key-name-hint = "${conf_sign_keyname}";
|
key-name-hint = "${conf_sign_keyname}";
|
||||||
${sign_line}
|
${sign_line}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user