diff options
| author | Richard Leitner <richard.leitner@skidata.com> | 2019-10-23 08:08:49 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-10-31 16:09:34 +0000 |
| commit | 4506cb4e341b26cc9c6e01bf2f96fbf38f1818e3 (patch) | |
| tree | 1f7fee64e0c95e4f01a74ccf9329e19a8536f473 /meta | |
| parent | 1b97c75552c80bf9b6994fc374f36a638c9d7593 (diff) | |
| download | poky-4506cb4e341b26cc9c6e01bf2f96fbf38f1818e3.tar.gz | |
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>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/classes/kernel-fitimage.bbclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/kernel-fitimage.bbclass b/meta/classes/kernel-fitimage.bbclass index e53487ee23..ec18a3d699 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 |
| 54 | FIT_HASH_ALG ?= "sha256" | 54 | FIT_HASH_ALG ?= "sha256" |
| 55 | 55 | ||
| 56 | # fitImage Signature Algo | ||
| 57 | FIT_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 | |||
| 246 | fitimage_emit_section_config() { | 249 | fitimage_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 | }; |
