diff options
author | Heiko Schocher <hs@denx.de> | 2012-01-16 21:13:35 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-02-12 10:11:24 +0100 |
commit | 317d6c57d5e9bc9d363df8e0e395058b5985882e (patch) | |
tree | 3d7f7c80c24dcd53c979a6fbf289ad56da0eed63 /doc/README.menu | |
parent | e0611dd97bb38ba341b3479974eb2a3271de380e (diff) | |
download | u-boot-imx-317d6c57d5e9bc9d363df8e0e395058b5985882e.zip u-boot-imx-317d6c57d5e9bc9d363df8e0e395058b5985882e.tar.gz u-boot-imx-317d6c57d5e9bc9d363df8e0e395058b5985882e.tar.bz2 |
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>
Diffstat (limited to 'doc/README.menu')
-rw-r--r-- | doc/README.menu | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/README.menu b/doc/README.menu index 4ddf914..6ce6bba 100644 --- a/doc/README.menu +++ b/doc/README.menu @@ -25,6 +25,11 @@ the interfaces should be available. Menus are composed of items. Each item has a key used to identify it in the menu, and an opaque pointer to data controlled by the consumer. +If you want to show a menu, instead starting the shell, define +CONFIG_MENU_SHOW. You have to code the int menu_show(int bootdelay) +function, which handle your menu. This function returns the remaining +bootdelay. + Interfaces ---------- #include "menu.h" |