Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buildreport_parser: Add Depex section parsing #460

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion edk2toollib/uefi/edk2/parsers/buildreport_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def Parse(self):
inPcdSection = False
inLibSection = False
inDepSection = False
inOverallDepex = False
nextLineSection = False
tokenspace = ""

Expand Down Expand Up @@ -81,6 +82,11 @@ def Parse(self):
elif (line == "Final Dependency Expression (DEPEX) Instructions"):
inDepSection = True
i += 1 # add additional line to skip the dashed line
elif (line == "Dependency Expression (DEPEX) from INF"):
# For some reason, "Final Dependency Expression (DEPEX) Instructions" does not exist
# For all modules, so we need to check for this as well.
inDepSection = True
inOverallDepex = True
else:
logging.debug("Unsupported Section: " + line)
inPcdSection = False
Expand Down Expand Up @@ -141,7 +147,13 @@ def Parse(self):
line += self._RawContent[i].rstrip()

elif (inDepSection):
pass
if line == "Dependency Expression (DEPEX) from INF":
inOverallDepex = True
elif line.startswith("-----"):
inOverallDepex = False

elif inOverallDepex:
self.Depex += " " + line
# not implemented right now
Javagedes marked this conversation as resolved.
Show resolved Hide resolved

else:
Expand Down