summaryrefslogtreecommitdiff
path: root/Tools/Python
diff options
context:
space:
mode:
authorbbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524>2007-01-11 07:11:34 +0000
committerbbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524>2007-01-11 07:11:34 +0000
commitb12dbde369a174c6e73c7bc1aeb7518aea64c4a7 (patch)
treebd6ec7cb9ffa9e8a5c1ba57d9aea53e6a1ca3401 /Tools/Python
parent38a7027076edc33e6edc203ede39016982e005fb (diff)
downloadedk2-platforms-b12dbde369a174c6e73c7bc1aeb7518aea64c4a7.tar.xz
Fix a typo.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2218 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Python')
-rwxr-xr-xTools/Python/GenMake.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Tools/Python/GenMake.py b/Tools/Python/GenMake.py
index d4deffc2d2..b37000dee3 100755
--- a/Tools/Python/GenMake.py
+++ b/Tools/Python/GenMake.py
@@ -29,11 +29,11 @@ def mkdir(path):
except:
pass
-def openMdeSpd(arch):
+def openSpd(spdFile, arch):
- """Open the MdePkg.spd and process the msa files."""
+ """Open the spdFile and process the msa files it contains."""
- db = xml.dom.minidom.parse(inWorkspace("MdePkg/MdePkg.spd"))
+ db = xml.dom.minidom.parse(inWorkspace(spdFile))
for msaFile in XmlList(db, "/PackageSurfaceArea/MsaFiles/Filename"):
msaFileName = XmlElementData(msaFile)
@@ -76,7 +76,7 @@ def doLib(msafile, arch):
if ext in [".c", ".S"]:
obj = str(base+".o")
if obj in objects:
- print "Error: The msa file %s is ambigous. There are mutliple sources that can produce the object file %s. Please fix it." % (msafile, obj)
+ print "Error: The msa file %s is ambiguous. There are mutliple sources that can produce the object file %s. Please fix it." % (msafile, obj)
sys.exit()
else:
objects.append(obj)
@@ -101,4 +101,4 @@ def doLib(msafile, arch):
if __name__ == '__main__':
for arch in ["IA32", "X64"]:
- openMdeSpd(arch);
+ openSpd("MdePkg/MdePkg.spd", arch);