aboutsummaryrefslogtreecommitdiff
path: root/tools/binman/test
diff options
context:
space:
mode:
authorSimon Glass2019-08-24 07:23:05 -0600
committerSimon Glass2019-10-15 08:40:02 -0600
commitb87064c2496785dde9e33fcdf84175d64163db57 (patch)
tree56de0dcd05c98a0d616d7a20b8511e3b896559dc /tools/binman/test
parenteb0086fa59e61561a5eca61b9ab8323d8a0cbf9c (diff)
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>
Diffstat (limited to 'tools/binman/test')
-rw-r--r--tools/binman/test/u_boot_binman_syms.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/binman/test/u_boot_binman_syms.c b/tools/binman/test/u_boot_binman_syms.c
index 4898f983e32..4520b319f16 100644
--- a/tools/binman/test/u_boot_binman_syms.c
+++ b/tools/binman/test/u_boot_binman_syms.c
@@ -11,3 +11,4 @@
binman_sym_declare(unsigned long, u_boot_spl, offset);
binman_sym_declare(unsigned long long, u_boot_spl2, offset);
binman_sym_declare(unsigned long, u_boot_any, image_pos);
+binman_sym_declare(unsigned long, u_boot_any, size);