[PATCH v2 7/9] Make EFI_LOADER depend on DM and OF_CONTROL

Tom Rini trini at konsulko.com
Tue Jul 27 00:07:35 CEST 2021


On Fri, Jul 02, 2021 at 12:36:18PM -0600, Simon Glass wrote:

> This feature should never have been made available when driver model
> or devicetree are disabled. Add these as conditions, so that we don't
> create even more barriers to migration.
> 
> Add a note about the substantial size increment associated with this
> option.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
> 
> Changes in v2:
> - Split out new patch to make EFI_LOADER depend on DM and OF_CONTROL
> - Note the approximate size of this feature in the help
> 
>  lib/efi_loader/Kconfig | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig
> index 6242caceb7f..466abfed300 100644
> --- a/lib/efi_loader/Kconfig
> +++ b/lib/efi_loader/Kconfig
> @@ -1,6 +1,6 @@
>  config EFI_LOADER
>  	bool "Support running UEFI applications"
> -	depends on OF_LIBFDT && ( \
> +	depends on OF_LIBFDT && DM && OF_CONTROL && ( \
>  		ARM && (SYS_CPU = arm1136 || \
>  			SYS_CPU = arm1176 || \
>  			SYS_CPU = armv7   || \
> @@ -25,6 +25,8 @@ config EFI_LOADER
>  	  will expose the UEFI API to a loaded application, enabling it to
>  	  reuse U-Boot's device drivers.
>  
> +	  For ARM 32-bit, this adds about 90KB to the size of U-Boot.
> +
>  if EFI_LOADER
>  
>  config CMD_BOOTEFI_BOOTMGR

Note that we have platforms today with EFI_LOADER without OF_CONTROL, so
this isn't strictly the right requirements.  What do you think here
Heinrich?


-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210726/405a8021/attachment.sig>


More information about the U-Boot mailing list