Skip to content

binman: fit: skip empty data property for externally-provided images

Paul HENRYS u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1binman: fit: skip empty data property for externally-provided imagestools/binman/etype/fit.py+2 -13 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/1] binman: fit: skip empty data property for externally-provided images

When generating a FIT image with binman and storing its data externally to the FIT, an empty data property is still present in the FIT header, alongside the data-position and data-size properties.
This patch prevents the data property from being added when the image data is stored externally to the FIT.

The current implementation produces the following FIT structure with an empty data property:

/ {
    timestamp = <0x6b00252a>;
    description = "Kernel FIT";
    label = "kernel";
    phandle = <0x00000001>;
    images {
        kernel-1 {
            data-size = <0x0096f890>;
            data-position = <0x00001000>;
            description = "Linux kernel";
            type = "kernel";
            os = "linux";
            arch = "arm64";
	    data;
            compression = "lzo";
            load = <0x02f00000>;
            entry = <0x02f00000>;
            hash {
                value = <0x8a206366 0xe4a74eb6 0xe0e65630 0x31543640 0xc999a554 0x0b446c28 0xbc23a525 0xb7459f15>;
                algo = "sha256";
            };
        };
    ...

Paul HENRYS (1):
binman: fit: skip empty data property for externally-provided images

 tools/binman/etype/fit.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
2.43.0