binman: Support updating the dtb in an ELF file
authorSimon Glass <sjg@chromium.org>
Thu, 4 Nov 2021 03:09:18 +0000 (21:09 -0600)
committerSimon Glass <sjg@chromium.org>
Sat, 13 Nov 2021 15:16:39 +0000 (08:16 -0700)
commit0427bed63bece3caeb8153548903146b73b56677
tree90653898c45400120b54f2b32973e71df585b3ca
parent7115f00bb7d76abb3d52897947ee52736fe38290
binman: Support updating the dtb in an ELF file

WIth EFI we must embed the devicetree in an ELF image so that it is loaded
as part of the executable file. We want it to include the binman
definition in there also, which in some cases cannot be created until the
ELF (u-boot) is built. Add an option to binman to support writing the
updated dtb to the ELF file u-boot.out

This is useful with the EFI app, which is always packaged as an ELF file.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/binman.rst
tools/binman/cmdline.py
tools/binman/control.py
tools/binman/elf.py
tools/binman/ftest.py
tools/binman/test/Makefile
tools/binman/test/u_boot_binman_embed.c [new file with mode: 0644]
tools/binman/test/u_boot_binman_embed.lds [new file with mode: 0644]
tools/binman/test/u_boot_binman_embed_sm.c [new file with mode: 0644]