bloblist: Use explicit numbering for the tags
authorSimon Glass <sjg@chromium.org>
Thu, 13 Jan 2022 02:26:19 +0000 (19:26 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 13 Jan 2022 16:13:41 +0000 (09:13 -0700)
commitf16ec77784b4a2ffdba82bc4044581131aea44e4
tree7bbf6a2e323f2684e74b2d54bfb1a679a45a758a
parentf9abc1cac1130279b486c51056b2e6fba99633b1
bloblist: Use explicit numbering for the tags

At present if someone adds a tag in the middle of the list it works well
enough within a U-Boot build. But if these tags are used in another
project, or with an older version of SPL, the numbers make become
inconsistent.

Use explicit tag numbers that never change, to resolve this problem.
Allocate areas for existing U-Boot tags and set up an area for use by
projects and vendors, as well as for private use. Keep tags above
0x10000 unallocated for now.

Update bloblist_tag_name() and the tests to work with this new setup.

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