diff options
| author | weety <[email protected]> | 2018-09-05 11:40:35 +0800 |
|---|---|---|
| committer | weety <[email protected]> | 2018-09-05 11:40:35 +0800 |
| commit | 4212c72ff5025c039ed75c145a160260984f8320 (patch) | |
| tree | ef37fabccfb5c87cff729f74ba24585de1eee094 /tools | |
| parent | 0b85ab290dce2bff899ebe1237266c3955a8b7b2 (diff) | |
Support Writting mainmenu text competible with C tools.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/kconfiglib.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/kconfiglib.py b/tools/kconfiglib.py index 098f5883f1..56b4083524 100644 --- a/tools/kconfiglib.py +++ b/tools/kconfiglib.py @@ -1145,6 +1145,13 @@ class Kconfig(object): 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 |
