u-boot/tools/binman/test/274_offset_from_elf.dts
Simon Glass 571bc4e67d binman: Support positioning an entry by and ELF symbol
In some cases it is useful to position an entry over the top of a symbol
in an ELF file. For example, if the symbol holds a version string then it
allows the string to be accessed from the fdtmap.

Add support for this.

Suggested-by: Pali Rohár <pali@kernel.org>
Suggested-by: Keith Short <keithshort@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
2023-01-18 14:55:41 -07:00

30 lines
441 B
Text

// SPDX-License-Identifier: GPL-2.0+
/dts-v1/;
/ {
#address-cells = <1>;
#size-cells = <1>;
binman {
blob: blob {
filename = "blob_syms.bin";
elf-filename = "blob_syms";
elf-base-sym = "__my_start_sym";
};
inset {
type = "null";
offset-from-elf = <&blob>, "val3", <0>;
size = <4>;
overlap;
};
inset2 {
type = "null";
offset-from-elf = <&blob>, "val3", <4>;
size = <4>;
overlap;
};
};
};