[U-Boot] [PATCH] menu: don't bother going interactive with just one menu item

Tom Rini trini at konsulko.com
Wed Jul 17 15:58:12 UTC 2019


On Fri, Jun 21, 2019 at 12:12:39PM +0800, Leon Yu wrote:

> If there is only one menu item available, prompting user to enter
> choice makes little sense and just causes unnecessary boot delay. This
> change makes menu_get_choice return the only one item when there is no
> other choices.
> 
> Signed-off-by: Leon Yu <leoyu at nvidia.com>
> Cc: Tom Warren <twarren at nvidia.com>
> Cc: Stephen Warren <swarren at nvidia.com>
> Cc: Thierry Reding <treding at nvidia.com>

As you note in a follow up to Frank's comment this is a behavior change
that can make it harder to get into U-Boot console in some cases.  Can
you please expand a bit more on the case where we are using a menu and
waiting the defined number of seconds is a problem (and not addressed
well enough by changing the timeout, which is configurable, yes?) ?
Thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190717/66f9eed0/attachment.sig>


More information about the U-Boot mailing list