menu "Basic options" config IO bool "IO support" default y help Enable stdin/stdout input/output. Note that if this option is disabled, then you won't see any output. comment "IO disabled, no output will be shown" depends on !IO config PUNCT string "End of greeting punctuation" default "!" help Character for punctuating the end of the greeting sentence. endmenu menuconfig FANCY bool "Fancy options" default y depends on $(ENABLE_FANCY) help Enable more fancy configuration options. if FANCY # GREETING_* # choice prompt "Greeting" default GREETING_HELLO help String to use as a greeting. config GREETING_HELLO bool "\"Hello\"" select GREETING_BUILTIN config GREETING_HI bool "\"Hi\"" select GREETING_BUILTIN config GREETING_HOWDY bool "\"Howdy\"" select GREETING_BUILTIN config GREETING_CUSTOM bool "Custom greeting" endchoice config GREETING_BUILTIN bool comment "Using builtin greeting string" depends on GREETING_BUILTIN config GREETING_TEXT string "Custom greeting" if GREETING_CUSTOM default "Hello" if GREETING_HELLO default "Hi" if GREETING_HI default "Howdy" if GREETING_HOWDY help Custom string to use as a greeting. # NAME_* # choice NAME_FALLBACK bool "Name fallback" optional help Fallback name to use if it is unspecified on the command line. config NAME_ASK bool "Ask for name" depends on IO help Ask for the name to greet if it is unspecified on the command line. config NAME_DEF bool "Use default name" help Use the default name to greet if it is unspecified on the command line. endchoice config NAME_ASK_MAX int "Max times to ask for name" default 5 range 1 10 depends on NAME_ASK help Maximum number of times to ask for the name to greet. endif # menuconfig FANCY