Skip to content

Commit

Permalink
Modifying how libraries are handled. When multiple NULL libraries exi…
Browse files Browse the repository at this point in the history
…st for a module, only the last one would be reported, and the others overwritten.
  • Loading branch information
apop5 committed Nov 21, 2024
1 parent 1d941cf commit 70b36c6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions edk2toollib/uefi/edk2/parsers/buildreport_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,15 @@ def Parse(self) -> None:
# Take absolute path and convert to EDK build path
RelativePath = self.pathConverter.GetEdk2RelativePathFromAbsolutePath(lib_instance)
if RelativePath is not None:
self.Libraries[lib_class] = RelativePath
if lib_class in self.Libraries:
self.Libraries[lib_class] = self.Libraries[lib_class] + f",{RelativePath}"
else:
self.Libraries[lib_class] = RelativePath
else:
self.Libraries[lib_class] = lib_instance
if lib_class in self.Libraries:
self.Libraries[lib_class] = self.Libraries[lib_class] + f",{lib_instance}"
else:
self.Libraries[lib_class] = lib_instance
i += 1
continue

Expand Down

0 comments on commit 70b36c6

Please sign in to comment.