ldgen: fixed error reporting of duplicate and missing entries.

Fragment was missing path variable which is used for error reporting.
This commit is contained in:
Marius Vikhammer
2022-03-24 13:04:02 +08:00
parent c1bcb8756b
commit e32fc9eb36

View File

@@ -32,6 +32,7 @@ class Fragment:
def __init__(self, name: str, entries: Set[Union[str, Tuple[str]]]):
self.name = name
self.entries = entries
self.path = ''
def __repr__(self):
return str(self.__dict__)
@@ -470,4 +471,7 @@ def parse_fragment_file(path, sdkconfig):
fragment_file = parser.parse_file(path, parse_all=True)[0]
fragment_file.path = path
for frag in fragment_file.fragments:
frag.path = path
return fragment_file