]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/build/build.py
Sync EDKII BaseTools to BaseTools project r2065.
[mirror_edk2.git] / BaseTools / Source / Python / build / build.py
index 545ffa39aaa9e7fc1b6c3bd5c9d4835600a7222c..54265952d03ba034d540168a6429e66603005161 100644 (file)
@@ -23,6 +23,7 @@ import glob
 import time\r
 import platform\r
 import traceback\r
+import encodings.ascii \r
 \r
 from struct import *\r
 from threading import *\r
@@ -304,7 +305,7 @@ class BuildUnit:
 \r
     ## str() method\r
     #\r
-    #   It just returns the string representaion of self.BuildObject\r
+    #   It just returns the string representation of self.BuildObject\r
     #\r
     #   @param  self        The object pointer\r
     #\r
@@ -735,7 +736,7 @@ class Build():
         self.LoadFixAddress = 0\r
         self.UniFlag        = UniFlag\r
 \r
-        # print dot charater during doing some time-consuming work\r
+        # print dot character during doing some time-consuming work\r
         self.Progress = Utils.Progressor()\r
 \r
         # parse target.txt, tools_def.txt, and platform file\r
@@ -942,7 +943,7 @@ class Build():
 \r
     ## Build a module or platform\r
     #\r
-    # Create autogen code and makfile for a module or platform, and the launch\r
+    # Create autogen code and makefile for a module or platform, and the launch\r
     # "make" command to build it\r
     #\r
     #   @param  Target                      The target of build command\r
@@ -1267,9 +1268,9 @@ class Build():
         if len (SmmModuleList) > 0:\r
             MapBuffer.write('SMM_CODE_PAGE_NUMBER      = 0x%x\n' % (SmmSize/0x1000))\r
         \r
-        PeiBaseAddr = TopMemoryAddress - RtSize - BtSize\r
+        PeiBaseAddr = TopMemoryAddress - RtSize - BtSize \r
         BtBaseAddr  = TopMemoryAddress - RtSize\r
-        RtBaseAddr  = TopMemoryAddress - ReservedRuntimeMemorySize\r
+        RtBaseAddr  = TopMemoryAddress - ReservedRuntimeMemorySize \r
 \r
         self._RebaseModule (MapBuffer, PeiBaseAddr, PeiModuleList, TopMemoryAddress == 0)\r
         self._RebaseModule (MapBuffer, BtBaseAddr, BtModuleList, TopMemoryAddress == 0)\r