bloblist: Add a command
authorSimon Glass <sjg@chromium.org>
Sun, 20 Sep 2020 00:49:26 +0000 (18:49 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 6 Oct 2020 15:07:54 +0000 (09:07 -0600)
commit4aed22762303755f8f26d14f0ad2608d63550e72
tree8dd4859918fb4b6a1311cbf9ddb722505dfdb23b
parent9c22adb8f979ce1386b600a13f5abc37ec92d696
bloblist: Add a command

It is helpful to be able to see basic statistics about the bloblist and
also to list its contents. Add a 'bloblist' command to handle this.

Put the display functions in the bloblist modules rather than in the
command code itself. That allows showing a list from SPL, where commands
are not available.

Also make bloblist_first/next_blob() static as they are not used outside
this file.

Signed-off-by: Simon Glass <sjg@chromium.org>
cmd/Kconfig
cmd/Makefile
cmd/bloblist.c [new file with mode: 0644]
common/bloblist.c
include/bloblist.h
test/bloblist.c