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

Leon Yu leoyu at nvidia.com
Mon Jun 24 08:40:18 UTC 2019


On Fri, Jun 21, 2019 at 09:07:39PM +0200, Frank Wunderlich wrote:
> imho this makes it impossible to get into uboot-console which is not a "real" menuitem
> 
> it is only shown after the list of defined Menuitems
> 
> http://git.denx.de/?p=u-boot.git;a=blob;f=cmd/bootmenu.c;h=7f88c1ed63252ba046f07a9b1b59e70ff06d8dad;hb=HEAD#l325

uboot-console IS a menuitem. It's just not populated from bootmenu_$
environment variables but appended by bootmenu_create. Apart from that,
things work in the same way. So the behavior with this change is:

1) If no bootmenu_$ env. variable is defined, do_bootmenu will skip selection
and get into console which is the only option in the menu.
2) With at least one valid bootmenu_$, do_bootmenu displays those option(s)
from env along with "U-Boot console" and waits for user's input.

Leon

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------


More information about the U-Boot mailing list