From fcab6bbe39a63309362ee9405c1a446f1f9ba0f9 Mon Sep 17 00:00:00 2001 From: dp-arm Date: Thu, 3 Nov 2016 13:59:26 +0000 Subject: fiptool: Add support for operating on binary blobs using the UUID Previously, fiptool only understood a fixed set of images as specified in tbbr_config.c. It preserved unknown images during the update, unpack and remove operations but it was not possible to explicitly refer to one of those unknown images. Add a new --blob option to create/update/unpack/remove images that are not known at compile time. This is accomplished by specifying the UUID and filename pair as shown below: $ ./fiptool create --blob uuid=01234567-89ab-cdef-0123-456789abcdef,file=foo.bin fip.bin $ ./fiptool info fip.bin 01234567-89ab-cdef-0123-456789abcdef: offset=0x60, size=0x1AA68 Fixes ARM-software/tf-issues#420 Change-Id: Iaac2504b9a4252289c09e73d29645cbe240f3a82 Signed-off-by: dp-arm --- include/lib/stdlib/sys/uuid.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/lib/stdlib') diff --git a/include/lib/stdlib/sys/uuid.h b/include/lib/stdlib/sys/uuid.h index d43b6419..6d935bd6 100644 --- a/include/lib/stdlib/sys/uuid.h +++ b/include/lib/stdlib/sys/uuid.h @@ -37,6 +37,9 @@ /* Length of a node address (an IEEE 802 address). */ #define _UUID_NODE_LEN 6 +/* Length of UUID string including dashes. */ +#define _UUID_STR_LEN 36 + /* * See also: * http://www.opengroup.org/dce/info/draft-leach-uuids-guids-01.txt -- cgit v1.2.3