diff options
author | bbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-12-22 00:25:11 +0000 |
---|---|---|
committer | bbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-12-22 00:25:11 +0000 |
commit | af2efcafd4974000a9dfe0f09aa78dcda70aba78 (patch) | |
tree | e63bfb61a65476ef90a31119d297b585ca2464d9 /Tools/Python/Calc-Deps.py | |
parent | d56b1906f1f157735559397578474f8cc7d8fcdb (diff) | |
download | edk2-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-x | Tools/Python/Calc-Deps.py | 17 |
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))) |