diff options
author | John Ripple <john.ripple@keysight.com> | 2025-03-13 15:05:16 +0000 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-03-13 22:09:36 -0700 |
commit | 90f3c2118697b1094736bdc7367a87482660d470 (patch) | |
tree | 7597f9cd595f707b880b28336925aae0db50fc72 /meta-oe | |
parent | ae1133e17414e3f3af86010e7c3c307f40d8c7ca (diff) | |
download | meta-openembedded-90f3c2118697b1094736bdc7367a87482660d470.tar.gz |
fitimage.bbclass: Add missing punctuation
The functions related to signing the fitimage had missing quotations and
newlines. Without this punctuation, the signing class would fail to
generate a signed fitimage.
To test this change just create a fitImage using this class and set
FITIMAGE_SIGN to 1. The resulting fitImage its file should have one
property per line with quotes around the property values.
Signed-off-by: John Ripple <john.ripple@keysight.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r-- | meta-oe/classes/fitimage.bbclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta-oe/classes/fitimage.bbclass b/meta-oe/classes/fitimage.bbclass index fef8974187..03c01a1ed3 100644 --- a/meta-oe/classes/fitimage.bbclass +++ b/meta-oe/classes/fitimage.bbclass | |||
@@ -276,7 +276,7 @@ def fitimage_emit_subsection_signature(d, fd, sign_images_list): | |||
276 | fd.write('\t\t\tsignature-1 {\n') | 276 | fd.write('\t\t\tsignature-1 {\n') |
277 | fd.write(f'\t\t\t\talgo = "{hash_algo},{encrypt_algo}";\n') | 277 | fd.write(f'\t\t\t\talgo = "{hash_algo},{encrypt_algo}";\n') |
278 | if conf_sign_keyname: | 278 | if conf_sign_keyname: |
279 | fd.write(f'\t\t\t\tkey-name-hint = {conf_sign_keyname}";\n') | 279 | fd.write(f'\t\t\t\tkey-name-hint = "{conf_sign_keyname}";\n') |
280 | fd.write(f'\t\t\t\tsign-images = {sign_images};\n') | 280 | fd.write(f'\t\t\t\tsign-images = {sign_images};\n') |
281 | fd.write(f'\t\t\t\tsigner-name = "{signer_name}";\n') | 281 | fd.write(f'\t\t\t\tsigner-name = "{signer_name}";\n') |
282 | fd.write(f'\t\t\t\tsigner-version = "{signer_version}";\n') | 282 | fd.write(f'\t\t\t\tsigner-version = "{signer_version}";\n') |
@@ -341,9 +341,9 @@ def fitimage_emit_section_config_fdto(d, fd, dtb, compatible): | |||
341 | 341 | ||
342 | fd.write(f'\t\t{dtb} {{\n') | 342 | fd.write(f'\t\t{dtb} {{\n') |
343 | fd.write(f'\t\t\tdescription = "Device Tree Overlay";\n') | 343 | fd.write(f'\t\t\tdescription = "Device Tree Overlay";\n') |
344 | fd.write(f'\t\t\tfdt = "fdt-{dtb}";') | 344 | fd.write(f'\t\t\tfdt = "fdt-{dtb}";\n') |
345 | if compatible: | 345 | if compatible: |
346 | fd.write(f'\t\t\tcompatible = "{compatible}";') | 346 | fd.write(f'\t\t\tcompatible = "{compatible}";\n') |
347 | 347 | ||
348 | if sign == "1": | 348 | if sign == "1": |
349 | sign_images = ["fdt"] | 349 | sign_images = ["fdt"] |
@@ -493,7 +493,7 @@ do_configure[postfuncs] += "write_manifest" | |||
493 | do_fitimage () { | 493 | do_fitimage () { |
494 | if [ "${FITIMAGE_SIGN}" = "1" ]; then | 494 | if [ "${FITIMAGE_SIGN}" = "1" ]; then |
495 | uboot-mkimage ${FITIMAGE_MKIMAGE_EXTRA_ARGS} \ | 495 | uboot-mkimage ${FITIMAGE_MKIMAGE_EXTRA_ARGS} \ |
496 | -k ${FITIMAGE_SIGN_KEYDIR} -r \ | 496 | -k "${FITIMAGE_SIGN_KEYDIR}" -r \ |
497 | -f "${B}/manifest.its" \ | 497 | -f "${B}/manifest.its" \ |
498 | "${B}/fitImage" | 498 | "${B}/fitImage" |
499 | else | 499 | else |