Added some new field to the far template.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2126 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
bbahnsen
2006-12-22 00:25:11 +00:00
parent d56b1906f1
commit af2efcafd4
6 changed files with 140 additions and 44 deletions

View File

@ -120,6 +120,8 @@ def getCNames(spdFile):
# Get the name of the package
packageName = XmlElement(spd, "PackageSurfaceArea/SpdHeader/PackageName")
packageVersion = XmlElement(spd, "PackageSurfaceArea/SpdHeader/Version")
packageGuid = XmlElement(spd, "PackageSurfaceArea/SpdHeader/GuidValue")
# Find the C_Name
for cname in XmlList(spd, "/PackageSurfaceArea/GuidDeclarations/Entry/C_Name") + \
@ -132,7 +134,8 @@ def getCNames(spdFile):
# Map the <C_Name> to the <PackageName>. We will use this to lookup every
# identifier in the Input Code.
cname_table[cname_text] = packageName
cname_table[cname_text] = {"name": packageName, "version": packageVersion, "guid": packageGuid}
return
@ -195,7 +198,11 @@ large file."""
getSpds()
# Debug stuff.
print pp.pprint(function_table)
print pp.pprint(cname_table)
print "Classes = ", pp.pprint(list(search_classes(ids)))
print "C_Names = ", pp.pprint(list(search_cnames(ids)))
print "Function Table = "
pp.pprint(function_table)
print "CName Table = "
pp.pprint(cname_table)
print "Classes = "
pp.pprint(list(search_classes(ids)))
print "C_Names = "
pp.pprint(list(search_cnames(ids)))