path: root/common/Makefile
diff options
authorSascha Hauer <>2013-09-23 00:41:22 +0200
committerSascha Hauer <>2014-03-28 09:37:09 +0100
commitca8edb3b65ae2be88278efac6ca7da1de964be88 (patch)
tree941380a0a16520e8f18654181cf41e834bf37bad /common/Makefile
parent45693e0265d086b031739132d64d240b9afd038e (diff)
add menutree command
Creating menus from the shell using the regular 'menu' command is rather complicated. This adds a 'menutree' command which creates a menu from a directory structure. In the directory structure each directory corresponds to a single menu entry. The directory contains the following files: title - A file containing the title of the entry as shown in the menu box - If present, the entry is a 'bool' entry. The file contains a variable name from which the current state of the bool is taken from and saved to. action - if present this file contains a shell script which is executed when when the entry is selected. If neither 'box' or 'action' are present this entry is considered a submenu containing more entries. Signed-off-by: Sascha Hauer <>
Diffstat (limited to 'common/Makefile')
1 files changed, 1 insertions, 0 deletions
diff --git a/common/Makefile b/common/Makefile
index 667c7b3..204241c 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -43,6 +43,7 @@ obj-$(CONFIG_RESET_SOURCE) += reset_source.o
obj-$(CONFIG_SHELL_HUSH) += hush.o
obj-$(CONFIG_SHELL_SIMPLE) += parser.o
obj-$(CONFIG_UIMAGE) += image.o uimage.o
+obj-$(CONFIG_MENUTREE) += menutree.o
quiet_cmd_pwd_h = PWDH $@