diff options
author | Caleb Connolly <caleb.connolly@linaro.org> | 2024-08-30 13:34:36 +0100 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2024-09-12 17:35:37 +0200 |
commit | 22c48a92cdcead3c7bfb1449528d275bf8d3d30a (patch) | |
tree | ddd3aac2fac2f9ad5348e6d00eac0958295579ee /include/uuid.h | |
parent | 2bf0a87ae352478b74181bcf7ff2eb2c21d74538 (diff) | |
download | u-boot-22c48a92cdcead3c7bfb1449528d275bf8d3d30a.tar.gz |
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 <ilias.apalodimas@linaro.org>
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
Diffstat (limited to 'include/uuid.h')
-rw-r--r-- | include/uuid.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 |