[PATCH v1 4/4] efi: block: compile only if CONFIG_EFI_PARTITION enabled

Alexey Romanov avromanov at salutedevices.com
Tue Feb 27 11:04:41 CET 2024


We have to compile efi_block abstraction only if option
EFI_PARTITION is enabled. For example, if the user
only enabled MTD_PARTITIONS, we would still compile
efi_block. This is incorrect.

Signed-off-by: Alexey Romanov <avromanov at salutedevices.com>
---
 lib/efi_driver/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/efi_driver/Makefile b/lib/efi_driver/Makefile
index f2b6c05cc2..1fc85ce6f9 100644
--- a/lib/efi_driver/Makefile
+++ b/lib/efi_driver/Makefile
@@ -6,6 +6,6 @@
 # object inclusion implicitly depends on it
 
 obj-y += efi_uclass.o
-ifeq ($(CONFIG_PARTITIONS),y)
+ifeq ($(CONFIG_EFI_PARTITION),y)
 obj-y += efi_block_device.o
 endif
-- 
2.34.1



More information about the U-Boot mailing list