bloblist: Support allocating the bloblist
authorSimon Glass <sjg@chromium.org>
Thu, 4 Nov 2021 03:09:20 +0000 (21:09 -0600)
committerSimon Glass <sjg@chromium.org>
Sun, 5 Dec 2021 16:21:44 +0000 (09:21 -0700)
commitd5b6e91ba2cac6cb0a2f7437fdbbe792d1acb387
tree842f22a1bc589e25c4968440d4986c77dc00f46e
parente2f0474b05e9667f7f764138c833331fa701e7bf
bloblist: Support allocating the bloblist

Typically the bloblist is positioned at a fixed address in memory until
relocation. This is convenient when it is set up in SPL or before
relocation.

But for EFI we want to set it up only when U-Boot proper is running. Add
a way to allocate it using malloc() and update the documentation to cover
this aspect of bloblist.

Note there are no tests of this feature at present, nor any direct testing
of bloblist_init().

This can be added, e.g. by making this option controllable at runtime.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/Kconfig
common/bloblist.c
common/board_f.c
doc/develop/bloblist.rst