u-boot/tools/binman/test/261_section_fname.dts
Simon Glass efddab6c36 binman: Allow writing section contents to a file
At present only the image (which is a section) has a filename. Move this
implementation to the entry_Section class so that any section can have a
filename. With this, the section data is written to a file.

This allows parts of an image to be written, along with the entire image.

Make a note that this can be used to include the contents of a section in
one image in another (later) image.

Signed-off-by: Simon Glass <sjg@chromium.org>
2023-01-18 11:50:01 -07:00

29 lines
359 B
Text

// SPDX-License-Identifier: GPL-2.0+
/dts-v1/;
/ {
#address-cells = <1>;
#size-cells = <1>;
binman {
pad-byte = <0x26>;
size = <0x20>;
section@0 {
size = <0x10>;
pad-byte = <0x21>;
pad-before = <2>;
pad-after = <3>;
section {
filename = "outfile.bin";
u-boot {
};
};
};
section@1 {
u-boot {
};
};
};
};