mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
common, menu: show menu on startup if CONFIG_MENU_SHOW is defined
show a menu on startup instead running the shell. Signed-off-by: Heiko Schocher <hs@denx.de> Cc: Jason Hobbs <jason.hobbs@calxeda.com> Cc: Mike Frysinger <vapier@gentoo.org> Acked-by: Jason Hobbs <jason.hobbs@calxeda.com>
This commit is contained in:
committed by
Albert ARIBAUD
parent
e0611dd97b
commit
317d6c57d5
@@ -41,6 +41,7 @@
|
||||
|
||||
#include <post.h>
|
||||
#include <linux/ctype.h>
|
||||
#include <menu.h>
|
||||
|
||||
#if defined(CONFIG_SILENT_CONSOLE) || defined(CONFIG_POST) || defined(CONFIG_CMDLINE_EDITING)
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
@@ -372,6 +373,9 @@ void main_loop (void)
|
||||
|
||||
debug ("### main_loop entered: bootdelay=%d\n\n", bootdelay);
|
||||
|
||||
#if defined(CONFIG_MENU_SHOW)
|
||||
bootdelay = menu_show(bootdelay);
|
||||
#endif
|
||||
# ifdef CONFIG_BOOT_RETRY_TIME
|
||||
init_cmd_timeout ();
|
||||
# endif /* CONFIG_BOOT_RETRY_TIME */
|
||||
|
Reference in New Issue
Block a user