From 22c48a92cdcead3c7bfb1449528d275bf8d3d30a Mon Sep 17 00:00:00 2001 From: Caleb Connolly Date: Fri, 30 Aug 2024 13:34:36 +0100 Subject: lib: uuid: supporting building as part of host tools Adjust the UUID library code so that it can be compiled as part of a host tool. This removes the one redundant log_debug() call, as well as the incorrectly defined LOG_CATEGORY. In general this is a fairly trivial change, just adjusting includes and disabling list_guid. This will be used by a new genguid tool to generate v5 GUIDs that match those generated by U-Boot at runtime. Acked-by: Ilias Apalodimas Signed-off-by: Caleb Connolly --- include/uuid.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/uuid.h b/include/uuid.h index 1f4fa103b5e..7f8414dc906 100644 --- a/include/uuid.h +++ b/include/uuid.h @@ -70,8 +70,8 @@ struct uuid { /* Bits of a bitmask specifying the output format for GUIDs */ #define UUID_STR_FORMAT_STD 0 -#define UUID_STR_FORMAT_GUID BIT(0) -#define UUID_STR_UPPER_CASE BIT(1) +#define UUID_STR_FORMAT_GUID 0x1 +#define UUID_STR_UPPER_CASE 0x2 /* Use UUID_STR_LEN + 1 for string space */ #define UUID_STR_LEN 36 -- cgit v1.2.3