2 # comments are prefixed by #
5 # a menu node is a node that has no value but contains several
9 # comments can also be added inside a node
11 # a config node is the most basic node, storing a boolean value
13 prompt "A config example"
16 # a comment node is a node that has no value but it will display
20 # a node can have several default values: each expression is evaluated
21 # in the same order until one matches. If no expression matches, the
22 # default value of the node is used
24 prompt "Another config example"
25 default y if !MENU1_CONFIG1
28 # environment variables can be used anywhere in a conftree file: they
29 # are evaluated and replaced by their value before parsing the file.
31 prompt "A config example"
33 The content of the PATH variable is $(PATH)
35 # a choice node cntains several choiceconfig nodes that are exclusive
38 prompt "This is menu 1 choice 1"
39 default MENU1_CHOICE2 if MENU1_CONFIG1
42 help of menu1_choice: this is a choice between
45 choiceconfig MENU1_CHOICE1
48 choiceconfig MENU1_CHOICE2
51 choiceconfig MENU1_CHOICE3
54 endchoice # this closes the "choice" node
56 # an intconfig node stores an integer value
58 prompt "integer example"
61 This is the help of the integer node
63 # a strconfig stores a string
65 prompt "A strconfig example"
66 default "my default value"
70 # A menuconfig node is a menu node that can be enabled or disabled.
71 # The children nodes are available only if the node is enabled.
72 menuconfig MENUCONFIG1
73 prompt "My menuconfig node"
74 # If a line is too long, it can be splitted with a backslash
75 default y if !MENU1_CONFIG1 && \
78 Help for the menuconfig node
80 # the "requires" attribute sets a list of expressions that must be
81 # evaluated to True to enable the node.
82 config MENUCONFIG1_CONFIG1
83 prompt "again, a config"
84 requires MENU1_CONFIG1
85 requires !MENU1_CHOICE3
87 if MENU1_CHOICE1 || MENU1_CHOICE2
89 config MENUCONFIG1_CONFIG2
90 prompt "still another config"
92 # source another sub conftree file: the path can be relative to this file
93 # or absolute. The "./" is not mandatory here.
94 source "./subconftree.cfzy"