diff mbox series

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

Message ID 20240227100441.1811047-5-avromanov@salutedevices.com
State Superseded
Delegated to: Dario Binacchi
Headers show
Series Introduce mtdblock device | expand

Commit Message

Alexey Romanov Feb. 27, 2024, 10:04 a.m. UTC
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@salutedevices.com>
---
 lib/efi_driver/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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