summaryrefslogtreecommitdiff
path: root/disk/part_efi.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-07-28 18:51:16 -0400
committerTom Rini <trini@konsulko.com>2021-07-28 18:51:16 -0400
commitbbcacdf4cd23f2e5deb9ef916096c956c955243d (patch)
tree3065b9346139a0f30bc3f9e77f1ee27e8fba3fdd /disk/part_efi.c
parent22ecb12132a2de80a08654f139ff978176034c38 (diff)
parent537892065ac1428a48193d4b0fa7bf827e8d0d44 (diff)
Merge branch '2021-07-28-build-improvements'
- Assorted Makefile cleanups - A few code / build cleanups
Diffstat (limited to 'disk/part_efi.c')
-rw-r--r--disk/part_efi.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/disk/part_efi.c b/disk/part_efi.c
index 0fb7ff0b6bb..fdca91a6974 100644
--- a/disk/part_efi.c
+++ b/disk/part_efi.c
@@ -29,12 +29,13 @@
DECLARE_GLOBAL_DATA_PTR;
-/*
- * GUID for basic data partions.
- */
+#ifdef CONFIG_HAVE_BLOCK_DEVICE
+
+/* GUID for basic data partitons */
+#if CONFIG_IS_ENABLED(EFI_PARTITION)
static const efi_guid_t partition_basic_data_guid = PARTITION_BASIC_DATA_GUID;
+#endif
-#ifdef CONFIG_HAVE_BLOCK_DEVICE
/**
* efi_crc32() - EFI version of crc32 function
* @buf: buffer to calculate crc32 of
@@ -1126,4 +1127,4 @@ U_BOOT_PART_TYPE(a_efi) = {
.print = part_print_ptr(part_print_efi),
.test = part_test_efi,
};
-#endif
+#endif /* CONFIG_HAVE_BLOCK_DEVICE */