Lines Matching +full:line +full:- +full:name

4 # SPDX-License-Identifier: GPL-2.0
36 # The only missing status is "..", which was mapped as "---",
70 Displays an error message, printing file name and line
85 """Parses a single arch-support.txt feature file"""
92 if base != "arch-support.txt":
97 subsys = os.path.dirname(fname).split("/")[-2]
113 with open(fname, encoding="utf-8") as f:
114 for ln, line in enumerate(f, start=1):
115 line = line.strip()
117 match = re.match(r"^\#\s+Feature\s+name:\s*(.*\S)", line)
125 match = re.match(r"^\#\s+Kconfig:\s*(.*\S)", line)
133 match = re.match(r"^\#\s+description:\s*(.*\S)", line)
140 words = re.split(r"\s+", line)[1:]
147 if re.search(r"^\\s*$", line):
150 if re.match(r"^\s*\-+\s*$", line):
153 if re.search(r"^\s*\|\s*arch\s*\|\s*status\s*\|\s*$", line):
156 match = re.match(r"^\#\s*(.*)$", line)
161 match = re.match(r"^\s*\|\s*(\S+):\s*\|\s*(\S+)\s*\|\s*$", line)
171 status = "---"
177 self.parse_error(fname, ln, "Line is invalid", line)
180 self.parse_error(fname, 0, "Feature name not found")
207 """Parses all arch-support.txt feature files inside self.prefix"""
214 example_path = os.path.join(path, "arch-support.txt")
256 for name in sorted_features:
257 if feat and name != feat:
260 arch_table = self.data[name]["table"]
265 self.emit(f"{self.data[name]['subsys']:<{self.max_size_subsys}} ",
267 self.emit(f"{name:<{self.max_size_name}} ", end="")
268 self.emit(f"{self.data[name]['kconfig']:<{self.max_size_kconfig}} ",
272 self.emit(f"{self.data[name]['description']}")
310 self.emit("--------")
340 ln_marker = "-"
379 for name in sorted(self.data.keys(),
381 if not cur_subsys or cur_subsys != self.data[name]["subsys"]:
385 cur_subsys = self.data[name]["subsys"]
403 line = ""
405 arch_table = sorted(self.data[name]["table"].items(),
410 if status == "---":
414 if line != "":
415 lines.append(line)
416 line = ""
417 line = f"- **{status}**: {arch}"
418 elif len(line) + len(arch) + 2 < max_size_status:
419 line += f", {arch}"
421 lines.append(line)
422 line = f" {arch}"
425 if line != "":
426 lines.append(line)
428 description = self.data[name]["description"]
433 if last_space != -1:
438 desc_line = desc_line[:-1]
448 for ln, line in enumerate(lines):
452 col[0] = name
453 col[1] = f"``{self.data[name]['kconfig']}``"
460 self.emit(f"|{line:<{max_size_status}}|")
474 # Sort by subsystem, then by feature name (case‑insensitive)
475 for name in sorted(self.data.keys(),
478 if feat and name != feat:
481 feature = self.data[name]
484 status = " " * ((4 - len(status)) // 2) + status
488 self.emit(f"{name:<{self.max_size_name}}: ", end="")