summaryrefslogtreecommitdiff
path: root/include/lib/stdlib/sys/uuid.h
diff options
context:
space:
mode:
authordp-arm <dimitris.papastamos@arm.com>2016-11-03 13:59:26 +0000
committerdp-arm <dimitris.papastamos@arm.com>2016-12-30 09:23:38 +0000
commitfcab6bbe39a63309362ee9405c1a446f1f9ba0f9 (patch)
tree5fe8ad852101cbc982cbd3b93800896e3e962126 /include/lib/stdlib/sys/uuid.h
parente0f083a09b295306e0b31ebc9ea5e3a848d12b84 (diff)
downloadarm-trusted-firmware-fcab6bbe39a63309362ee9405c1a446f1f9ba0f9.tar.gz
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 <dimitris.papastamos@arm.com>
Diffstat (limited to 'include/lib/stdlib/sys/uuid.h')
-rw-r--r--include/lib/stdlib/sys/uuid.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/lib/stdlib/sys/uuid.h b/include/lib/stdlib/sys/uuid.h
index d43b6419d..6d935bd6b 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