diff options
| author | Jan Kiszka <[email protected]> | 2022-01-28 20:37:53 +0100 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2022-01-30 20:40:58 -0700 |
| commit | fcc87efdf3772e6e8d060dc10d521442d7772ce9 (patch) | |
| tree | 5173529e26ffbe12231b18fd86925c05f290c655 /tools/binman/test | |
| parent | 6c928c63a18cfc9e2a700cdd88a8db08a8680eb1 (diff) | |
binman: Skip node generation for images read from files
We can and should run the node generator only when creating a new image.
When we read it back, there is no need to generate nodes - they already
exits, and binman does not dive that deep into the image - and there is
no way to provide the required fdt-list. So store the mode in the image
object so that Entry_fit can simply skip generator nodes when reading
them from an fdtmap.
This unbreaks all read-backs of images that contain generator nodes in
their fdtmap. To confirm this, add a corresponding test case.
Signed-off-by: Jan Kiszka <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Tested-by: Simon Glass <[email protected]>
Add SPDX to dts file:
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'tools/binman/test')
| -rw-r--r-- | tools/binman/test/219_fit_gennode.dts | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tools/binman/test/219_fit_gennode.dts b/tools/binman/test/219_fit_gennode.dts new file mode 100644 index 00000000000..e9eda29983a --- /dev/null +++ b/tools/binman/test/219_fit_gennode.dts @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + fit { + description = "test-desc"; + #address-cells = <1>; + fit,fdt-list = "of-list"; + + images { + @fdt-SEQ { + description = "fdt-NAME.dtb"; + type = "flat_dt"; + compression = "none"; + }; + }; + }; + fdtmap { + }; + }; +}; |
