Documentation features parser moduleΒΆ
Library to parse the Linux Feature files and produce a ReST book.
- class lib.python.feat.parse_features.ParseFeature(prefix, debug=0, enable_fname=False)ΒΆ
Bases:
objectParses Documentation/features, allowing to generate ReST documentation from it.
- emit(msg='', end='\n')ΒΆ
Helper function to append a new message for feature output.
- h_arch = 'Architecture'ΒΆ
architecture header string.
- h_description = 'Description'ΒΆ
description header string.
- h_kconfig = 'Kconfig'ΒΆ
Kernel config header string.
- h_name = 'Feature'ΒΆ
feature header string.
- h_status = 'Status'ΒΆ
status header string.
- h_subsys = 'Subsystem'ΒΆ
subsystem header string.
- list_arch_features(arch, feat)ΒΆ
Print a matrix of kernel feature support for the chosen architecture.
- matrix_lines(desc_size, max_size_status, header)ΒΆ
Helper function to split element tables at the output matrix.
- output_arch_table(arch, feat=None)ΒΆ
Output feature(s) for a given architecture.
- output_feature(feat)ΒΆ
Output a feature on all architectures.
- output_matrix()ΒΆ
Generates a set of tables, groped by subsystem, containing whatβs the feature state on each architecture.
- parse()ΒΆ
Parses all arch-support.txt feature files inside self.prefix.
- parse_error(fname, ln, msg, data=None)ΒΆ
Displays an error message, printing file name and line.
- parse_feat_file(fname)ΒΆ
Parses a single arch-support.txt feature file.
- status_map = {'N/A': 2, 'TODO': 1, 'ok': 0}ΒΆ
Sort order for status. Others will be mapped at the end.