|
@@ -88,7 +88,7 @@ def get_symbol_subset(root, filter_func):
|
|
|
|
|
|
|
|
|
|
def get_symbol_parents(item, root=None, enable_choice=False):
|
|
def get_symbol_parents(item, root=None, enable_choice=False):
|
|
- """ Return the list of the item's parents. The lasst item of the list is
|
|
|
|
|
|
+ """ Return the list of the item's parents. The last item of the list is
|
|
the closest parent, the first the furthest.
|
|
the closest parent, the first the furthest.
|
|
|
|
|
|
:param item: Item from which the the parent list is generated
|
|
:param item: Item from which the the parent list is generated
|
|
@@ -107,7 +107,7 @@ def get_symbol_parents(item, root=None, enable_choice=False):
|
|
parent = parent.get_parent()
|
|
parent = parent.get_parent()
|
|
if isinstance(root, kconfiglib.Menu) or \
|
|
if isinstance(root, kconfiglib.Menu) or \
|
|
(enable_choice and isinstance(root, kconfiglib.Choice)):
|
|
(enable_choice and isinstance(root, kconfiglib.Choice)):
|
|
- parents.append("") # Dummy empty parrent to get a leading arrow ->
|
|
|
|
|
|
+ parents.append("") # Dummy empty parent to get a leading arrow ->
|
|
parents.reverse()
|
|
parents.reverse()
|
|
return parents
|
|
return parents
|
|
|
|
|
|
@@ -126,15 +126,14 @@ def format_asciidoc_table(root, get_label_func, filter_func=lambda x: True,
|
|
:param sub_menu: Output the column with the sub-menu path
|
|
:param sub_menu: Output the column with the sub-menu path
|
|
|
|
|
|
"""
|
|
"""
|
|
- def _format_entry(label, parents, sub_menu):
|
|
|
|
|
|
+ def _format_entry(item, parents, sub_menu):
|
|
""" Format an asciidoc table entry.
|
|
""" Format an asciidoc table entry.
|
|
|
|
|
|
"""
|
|
"""
|
|
if sub_menu:
|
|
if sub_menu:
|
|
- return "| {0:<40} <| {1}\n".format(label, " -> ".join(parents))
|
|
|
|
|
|
+ return "| {0:<40} <| {1}\n".format(item, " -> ".join(parents))
|
|
else:
|
|
else:
|
|
- return "| {0:<40}\n".format(label)
|
|
|
|
-
|
|
|
|
|
|
+ return "| {0:<40}\n".format(item)
|
|
lines = []
|
|
lines = []
|
|
for item in get_symbol_subset(root, filter_func):
|
|
for item in get_symbol_subset(root, filter_func):
|
|
if not item.is_symbol() or not item.prompts:
|
|
if not item.is_symbol() or not item.prompts:
|
|
@@ -264,9 +263,9 @@ class Buildroot:
|
|
# Implementation details:
|
|
# Implementation details:
|
|
#
|
|
#
|
|
# * The package list is generated from the *.mk file existence, the
|
|
# * The package list is generated from the *.mk file existence, the
|
|
- # first time this function is called. Despite the memory consumtion,
|
|
|
|
|
|
+ # first time this function is called. Despite the memory consumption,
|
|
# this list is stored because the execution time of this script is
|
|
# this list is stored because the execution time of this script is
|
|
- # noticebly shorter than re-scannig the package sub-tree for each
|
|
|
|
|
|
+ # noticeably shorter than rescanning the package sub-tree for each
|
|
# symbol.
|
|
# symbol.
|
|
if not hasattr(self, "_package_list"):
|
|
if not hasattr(self, "_package_list"):
|
|
pkg_list = []
|
|
pkg_list = []
|