The #endif for #if CONFIG_IS_ENABLED(EFI_PARTITION) was misplaced.
CONFIG_EFI_PARTITION=n disabled all entries in list_guid[].

CONFIG_EFI_PARTITION must only control the translation of GUIDs for GPT
partition tables.

Signed-off-by: Heinrich Schuchardt <[email protected]>
---
 lib/uuid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/uuid.c b/lib/uuid.c
index d7c164ea06b..16ca8f37751 100644
--- a/lib/uuid.c
+++ b/lib/uuid.c
@@ -95,6 +95,7 @@ static const struct {
                "system", "EFI System Partition",
                PARTITION_SYSTEM_GUID,
        },
+#endif /* EFI_PARTITION */
 #if defined(CONFIG_CMD_EFIDEBUG) || defined(CONFIG_EFI_CLIENT)
        {
                NULL, "Device Path",
@@ -304,7 +305,6 @@ static const struct {
        { "EFI_MEM_STATUS_CODE_REC", NULL, EFI_MEM_STATUS_CODE_REC },
        { "EFI_GUID_EFI_ACPI1", NULL, EFI_GUID_EFI_ACPI1 },
 #endif
-#endif /* EFI_PARTITION */
 #endif /* !USE_HOSTCC */
 };
 
-- 
2.53.0

Reply via email to