bootm: Allow updating the bootargs in a buffer
authorSimon Glass <sjg@chromium.org>
Thu, 5 Nov 2020 17:33:45 +0000 (10:33 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 4 Dec 2020 21:09:26 +0000 (16:09 -0500)
commit4448fe8e4e7cc4dc5336a2d27fa6048057eaf1a6
tree4a80588ef8fb03a002a6112b9cd7ed3bf0b5b027
parentb3c01678fdb15c63b231743481b9b77c7c4f8549
bootm: Allow updating the bootargs in a buffer

At present we only support updating the 'bootargs' environment
variable. Add another function to update a buffer instead. This will
allow zimage to use this feature.

Also add a lot more tests to cover various cases.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/bootm.c
include/bootm.h
test/bootm.c