Lines Matching +full:line +full:- +full:name
1 # SPDX-License-Identifier: GPL-2.0
15 KconfigEntryBase = collections.namedtuple('KconfigEntry', ['name', 'value'])
19 def __str__(self) -> str:
21 return r'# CONFIG_%s is not set' % (self.name)
23 return r'CONFIG_%s=%s' % (self.name, self.value)
39 def add_entry(self, entry: KconfigEntry) -> None:
42 def is_subset_of(self, other: 'Kconfig') -> bool:
46 if a.name != b.name:
55 def write_to_file(self, path: str) -> None:
60 def parse_from_string(self, blob: str) -> None:
65 for line in blob.split('\n'):
66 line = line.strip()
67 if not line:
70 match = config_matcher.match(line)
76 empty_match = is_not_set_matcher.match(line)
82 if line[0] == '#':
85 raise KconfigParseError('Failed to parse: ' + line)
87 def read_from_file(self, path: str) -> None: