binman: Allow support for writing a size symbol to binaries
authorSimon Glass <sjg@chromium.org>
Sat, 24 Aug 2019 13:23:05 +0000 (07:23 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 15 Oct 2019 14:40:02 +0000 (08:40 -0600)
commitb87064c2496785dde9e33fcdf84175d64163db57
tree56de0dcd05c98a0d616d7a20b8511e3b896559dc
parenteb0086fa59e61561a5eca61b9ab8323d8a0cbf9c
binman: Allow support for writing a size symbol to binaries

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@chromium.org>
tools/binman/elf_test.py
tools/binman/etype/section.py
tools/binman/ftest.py
tools/binman/test/u_boot_binman_syms.c