git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2218
6f19259b-4bc3-4df7-8a09-
765794883524
+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)
for msaFile in XmlList(db, "/PackageSurfaceArea/MsaFiles/Filename"):
msaFileName = XmlElementData(msaFile)
if ext in [".c", ".S"]:
obj = str(base+".o")
if obj in objects:
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)
sys.exit()
else:
objects.append(obj)
if __name__ == '__main__':
for arch in ["IA32", "X64"]:
if __name__ == '__main__':
for arch in ["IA32", "X64"]:
+ openSpd("MdePkg/MdePkg.spd", arch);