[PATCH 1/1] efi_loader: require CONFIG_BLK

AKASHI Takahiro takahiro.akashi at linaro.org
Tue Sep 7 13:25:17 CEST 2021


On Tue, Sep 07, 2021 at 09:01:08AM +0200, Heinrich Schuchardt wrote:
> The move to driver model should by now be completed. To be able to remove
> pre-driver model code from our block IO code require CONFIG_BLK=y for UEFI
> support.

If so, we can safely remove !CONFIG_BLK-related code
from efi_disk.c and efi_device_path.c.

-Takahiro Akashi


> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
>  lib/efi_loader/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig
> index dacc3b5881..692cf5ced0 100644
> --- a/lib/efi_loader/Kconfig
> +++ b/lib/efi_loader/Kconfig
> @@ -10,6 +10,7 @@ config EFI_LOADER
>  	depends on !EFI_STUB || !X86_64 || EFI_STUB_64BIT
>  	# We need EFI_STUB_32BIT to be set on x86_32 with EFI_STUB
>  	depends on !EFI_STUB || !X86 || X86_64 || EFI_STUB_32BIT
> +	depends on BLK
>  	default y if !ARM || SYS_CPU = armv7 || SYS_CPU = armv8
>  	select LIB_UUID
>  	select PARTITION_UUIDS
> --
> 2.30.2
> 


More information about the U-Boot mailing list