binman: Provide general support for updating ELF symbols
The current support for updating variables in a binary is hard-coded to
work with U-Boot:
- It assumes the image starts at __image_copy_start
- It uses the existing U-Boot-specific entry types
It is useful for other projects to use these feature.
Add properties to enable writing symbols for any blob, a way of specifying
the base symbol and a way of providing the ELF filename to allow symbol
lookup to take place.
With this it is possible to update a Zephyr image, such as zephyr.bin
after it has been built.
Signed-off-by:
Simon Glass <sjg@chromium.org>
Showing
- tools/binman/binman.rst 25 additions, 0 deletionstools/binman/binman.rst
- tools/binman/elf.py 6 additions, 2 deletionstools/binman/elf.py
- tools/binman/entry.py 2 additions, 1 deletiontools/binman/entry.py
- tools/binman/etype/blob.py 6 additions, 0 deletionstools/binman/etype/blob.py
- tools/binman/etype/u_boot_spl.py 0 additions, 1 deletiontools/binman/etype/u_boot_spl.py
- tools/binman/ftest.py 19 additions, 0 deletionstools/binman/ftest.py
- tools/binman/test/273_blob_symbol.dts 24 additions, 0 deletionstools/binman/test/273_blob_symbol.dts
- tools/binman/test/Makefile 8 additions, 1 deletiontools/binman/test/Makefile
- tools/binman/test/blob_syms.c 20 additions, 0 deletionstools/binman/test/blob_syms.c
- tools/binman/test/blob_syms.lds 30 additions, 0 deletionstools/binman/test/blob_syms.lds
Loading
Please register or sign in to comment