[PATCH v2 06/12] bloblist: Use explicit numbering for the tags
Simon Glass
sjg at chromium.org
Thu Jan 13 19:00:44 CET 2022
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 at chromium.org>
---
(no changes since v1)
common/bloblist.c | 45 +++++++++++++++++++++++------------
include/bloblist.h | 58 +++++++++++++++++++++++++++++++++++++---------
test/bloblist.c | 12 +++++-----
3 files changed, 83 insertions(+), 32 deletions(-)
Applied to u-boot-dm, thanks!
More information about the U-Boot
mailing list