summaryrefslogtreecommitdiff
path: root/Tools/Python/Calc-Deps.py
diff options
context:
space:
mode:
authorbbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524>2006-12-22 00:25:11 +0000
committerbbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524>2006-12-22 00:25:11 +0000
commitaf2efcafd4974000a9dfe0f09aa78dcda70aba78 (patch)
treee63bfb61a65476ef90a31119d297b585ca2464d9 /Tools/Python/Calc-Deps.py
parentd56b1906f1f157735559397578474f8cc7d8fcdb (diff)
downloadedk2-platforms-af2efcafd4974000a9dfe0f09aa78dcda70aba78.tar.xz
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
Diffstat (limited to 'Tools/Python/Calc-Deps.py')
-rwxr-xr-xTools/Python/Calc-Deps.py17
1 files changed, 12 insertions, 5 deletions
diff --git a/Tools/Python/Calc-Deps.py b/Tools/Python/Calc-Deps.py
index a0afa3f432..204379a3cb 100755
--- a/Tools/Python/Calc-Deps.py
+++ b/Tools/Python/Calc-Deps.py
@@ -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)))