[PATCH 03/25] autoboot: Correct dependencies on CMDLINE

Tom Rini trini at konsulko.com
Mon Sep 25 02:39:59 CEST 2023


On Sun, Sep 24, 2023 at 02:39:21PM -0600, Simon Glass wrote:

> Make AUTOBOOT depend on CMDLINE since it is mostly meaningless without it.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
> 
>  boot/Kconfig | 23 ++++++++++++++---------
>  1 file changed, 14 insertions(+), 9 deletions(-)
> 
> diff --git a/boot/Kconfig b/boot/Kconfig
> index f74ac7e9cc72..41ec2c34bf74 100644
> --- a/boot/Kconfig
> +++ b/boot/Kconfig
> @@ -1167,14 +1167,16 @@ menu "Autoboot options"
>  
>  config AUTOBOOT
>  	bool "Autoboot"
> +	depends on CMDLINE
>  	default y
>  	help
>  	  This enables the autoboot.  See doc/README.autoboot for detail.

This is fine and correct.

> +if AUTOBOOT
> +
>  config BOOTDELAY
>  	int "delay in seconds before automatically booting"
>  	default 2
> -	depends on AUTOBOOT
[snip]
> @@ -1322,6 +1324,9 @@ config AUTOBOOT_STOP_STR_SHA256
>  	  includes a ":", the portion prior to the ":" will be treated
>  	  as a salt value.
>  
> +endif  # AUTOBOOT_KEYED
> +endif  # AUTOBOOT

So it's ~200 lines, yes, hiding this under an if, or perhaps a menu
makes sense, however...

>  config AUTOBOOT_USE_MENUKEY
>  	bool "Allow a specify key to run a menu from the environment"
>  	depends on !AUTOBOOT_KEYED

It looks like there's more stuff to move under a menu/if here?

-- 
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/20230924/2294c0b4/attachment.sig>


More information about the U-Boot mailing list