Skip to content

Commit

Permalink
Support Writting mainmenu text competible with C tools.
Browse files Browse the repository at this point in the history
  • Loading branch information
weety committed Sep 5, 2018
1 parent 0b85ab2 commit 4212c72
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tools/kconfiglib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1145,6 +1145,13 @@ def write_config(self, filename,
with self._open(filename, "w") as f:
f.write(header)

# written mainmenu_text
# The prompt (title) of the top_node menu, with Kconfig variable references
# ("$FOO") expanded. Defaults to "Linux Kernel Configuration" (like in the
# C tools). Can be changed with the 'mainmenu' statement (see
# kconfig-language.txt).
f.write("# {}\n#\n".format(self.top_node.prompt[0]))

for node in self.node_iter(unique_syms=True):
item = node.item

Expand Down

0 comments on commit 4212c72

Please sign in to comment.