# # comments are prefixed by # # # a menu node is a node that has no value but contains several # other nodes menu MENU1 prompt "Menu 1" # comments can also be added inside a node # a config node is the most basic node, storing a boolean value config MENU1_CONFIG1 prompt "A config example" default y # a comment node is a node that has no value but it will display # a prompt in the GUI comment "Hello" # a node can have several default values: each expression is evaluated # in the same order until one matches. If no expression matches, the # default value of the node is used config MENU1_CONFIG2 prompt "Another config example" default y if !MENU1_CONFIG1 default n # environment variables can be used anywhere in a conftree file: they # are evaluated and replaced by their value before parsing the file. config MENU1_CONFIG3 prompt "A config example" ---help--- The content of the PATH variable is $(PATH) # a choice node cntains several choiceconfig nodes that are exclusive # each other choice MENU1_CHOICE prompt "This is menu 1 choice 1" default MENU1_CHOICE2 if MENU1_CONFIG1 default MENU1_CHOICE3 ---help--- help of menu1_choice: this is a choice between several values. choiceconfig MENU1_CHOICE1 prompt "choice 1" choiceconfig MENU1_CHOICE2 prompt "choice 2" choiceconfig MENU1_CHOICE3 prompt "choice 3" endchoice # this closes the "choice" node # an intconfig node stores an integer value intconfig INT_EXAMPLE prompt "integer example" default 12000000 ---help--- This is the help of the integer node # a strconfig stores a string strconfig STR_EXAMPLE prompt "A strconfig example" default "my default value" endmenu # A menuconfig node is a menu node that can be enabled or disabled. # The children nodes are available only if the node is enabled. menuconfig MENUCONFIG1 prompt "My menuconfig node" # If a line is too long, it can be splitted with a backslash default y if !MENU1_CONFIG1 && \ MENU1_CHOICE1 ---help--- Help for the menuconfig node # the "requires" attribute sets a list of expressions that must be # evaluated to True to enable the node. config MENUCONFIG1_CONFIG1 prompt "again, a config" requires MENU1_CONFIG1 requires !MENU1_CHOICE3 if MENU1_CHOICE1 || MENU1_CHOICE2 config MENUCONFIG1_CONFIG2 prompt "still another config" # source another sub conftree file: the path can be relative to this file # or absolute. The "./" is not mandatory here. source "./subconftree.cfzy" endif endmenuconfig