[U-Boot] [PATCH 25/34] binman: Allow support for writing a size symbol to binaries

sjg at google.com sjg at google.com
Fri Sep 27 00:38:50 UTC 2019


It is useful to be able to access the size of an image in SPL, with
something like:

binman_sym_declare(unsigned long, u_boot_any, size);

...
   ulong u_boot_size = binman_sym(ulong, u_boot_any, size);

Add support for this and update the tests.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 tools/binman/elf_test.py               |  4 ++--
 tools/binman/etype/section.py          |  2 ++
 tools/binman/ftest.py                  | 14 +++++++-------
 tools/binman/test/u_boot_binman_syms.c |  1 +
 4 files changed, 12 insertions(+), 9 deletions(-)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list