Always update the generated Map file.
authorlgao4 <lgao4@c2973edb-eda0-4c78-bc6a-9341b269661f>
Tue, 16 Mar 2010 08:43:28 +0000 (08:43 +0000)
committerlgao4 <lgao4@c2973edb-eda0-4c78-bc6a-9341b269661f>
Tue, 16 Mar 2010 08:43:28 +0000 (08:43 +0000)
git-svn-id: https://edk2-buildtools.svn.sourceforge.net/svnroot/edk2-buildtools/trunk/BaseTools@1933 c2973edb-eda0-4c78-bc6a-9341b269661f

Source/Python/build/build.py

index 525f077..d6fdd8a 100644 (file)
@@ -1269,7 +1269,9 @@ class Build():
         #\r
         # Save address map into MAP file.\r
         #\r
-        SaveFileOnChange(MapFilePath, MapBuffer.getvalue(), False)\r
+        MapFile = open(MapFilePath, "wb")
+        MapFile.write(MapBuffer.getvalue())
+        MapFile.close()
         MapBuffer.close()\r
         if self.LoadFixAddress != 0:
             sys.stdout.write ("\nLoad Module At Fix Address Map file saved to %s\n" %(MapFilePath))