diff options
author | Simon Glass | 2020-11-05 10:33:47 -0700 |
---|---|---|
committer | Tom Rini | 2020-12-04 16:10:01 -0500 |
commit | 1a62d64c7de7e7de3facf221eb8408ddfb675cb8 (patch) | |
tree | c65c0433b09af9dc2fe711112845273d2ed3975e /include/bootm.h | |
parent | 488d89afb88af5f148c7c7cf97ac382a0537b4f7 (diff) |
cli: Support macro processing with a fixed-size buffer
At present cli_simple_process_macros() requires that the caller provide
an output buffer that is exactly CONFIG_SYS_CBSIZE bytes in length. This
makes sense since it is designed to be used from the command line. But we
also want to use it for bootargs substitution.
Update the function to allow the caller to specify the buffer size. Also
return an error if the buffer is exhausted. The caller can ignore that if
preferred.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/bootm.h')
0 files changed, 0 insertions, 0 deletions