From 317d6c57d5e9bc9d363df8e0e395058b5985882e Mon Sep 17 00:00:00 2001 From: Heiko Schocher Date: Mon, 16 Jan 2012 21:13:35 +0000 Subject: 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 Cc: Jason Hobbs Cc: Mike Frysinger Acked-by: Jason Hobbs --- doc/README.menu | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc/README.menu') diff --git a/doc/README.menu b/doc/README.menu index 4ddf91491d..6ce6bbab80 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" -- cgit v1.2.3