]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/build/build.py
BaseTools: Remove unused logic for IPF
[mirror_edk2.git] / BaseTools / Source / Python / build / build.py
index bdeeca5035e34aea10f74eef0b076d1d288ceb51..f41b1754ec31232f34d67f7564efb2a38c47140b 100644 (file)
@@ -1398,11 +1398,7 @@ class Build():
                             Name = StrList[1]\r
                             RelativeAddress = int (StrList[2], 16) - OrigImageBaseAddress\r
                             FunctionList.append ((Name, RelativeAddress))\r
-                            if ModuleInfo.Arch == 'IPF' and Name.endswith('_ModuleEntryPoint'):\r
-                                #\r
-                                # Get the real entry point address for IPF image.\r
-                                #\r
-                                ModuleInfo.Image.EntryPoint = RelativeAddress\r
+\r
                 ImageMap.close()\r
             #\r
             # Add general information.\r
@@ -1500,9 +1496,6 @@ class Build():
         RtSize  = 0\r
         # reserve 4K size in SMRAM to make SMM module address not from 0.\r
         SmmSize = 0x1000\r
-        IsIpfPlatform = False\r
-        if 'IPF' in self.ArchList:\r
-            IsIpfPlatform = True\r
         for ModuleGuid in ModuleList:\r
             Module = ModuleList[ModuleGuid]\r
             GlobalData.gProcessingFile = "%s [%s, %s, %s]" % (Module.MetaFile, Module.Arch, Module.ToolChain, Module.BuildTarget)\r
@@ -1526,9 +1519,6 @@ class Build():
                         BtSize += ImageInfo.Image.Size\r
                     elif Module.ModuleType in [SUP_MODULE_DXE_RUNTIME_DRIVER, EDK_COMPONENT_TYPE_RT_DRIVER, SUP_MODULE_DXE_SAL_DRIVER, EDK_COMPONENT_TYPE_SAL_RT_DRIVER]:\r
                         RtModuleList[Module.MetaFile] = ImageInfo\r
-                        #IPF runtime driver needs to be at 2 page alignment.\r
-                        if IsIpfPlatform and ImageInfo.Image.Size % 0x2000 != 0:\r
-                            ImageInfo.Image.Size = (ImageInfo.Image.Size / 0x2000 + 1) * 0x2000\r
                         RtSize += ImageInfo.Image.Size\r
                     elif Module.ModuleType in [SUP_MODULE_SMM_CORE, SUP_MODULE_DXE_SMM_DRIVER, SUP_MODULE_MM_STANDALONE, SUP_MODULE_MM_CORE_STANDALONE]:\r
                         SmmModuleList[Module.MetaFile] = ImageInfo\r
@@ -1575,10 +1565,6 @@ class Build():
             TopMemoryAddress = self.LoadFixAddress\r
             if TopMemoryAddress < RtSize + BtSize + PeiSize:\r
                 EdkLogger.error("build", PARAMETER_INVALID, "FIX_LOAD_TOP_MEMORY_ADDRESS is too low to load driver")\r
-            # Make IPF runtime driver at 2 page alignment.\r
-            if IsIpfPlatform:\r
-                ReservedRuntimeMemorySize = TopMemoryAddress % 0x2000\r
-                RtSize = RtSize + ReservedRuntimeMemorySize\r
 \r
         #\r
         # Patch FixAddress related PCDs into EFI image\r
@@ -2238,8 +2224,8 @@ def LogBuildTime(Time):
 #\r
 def MyOptionParser():\r
     Parser = OptionParser(description=__copyright__, version=__version__, prog="build.exe", usage="%prog [options] [all|fds|genc|genmake|clean|cleanall|cleanlib|modules|libraries|run]")\r
-    Parser.add_option("-a", "--arch", action="append", type="choice", choices=['IA32', 'X64', 'IPF', 'EBC', 'ARM', 'AARCH64'], dest="TargetArch",\r
-        help="ARCHS is one of list: IA32, X64, IPF, ARM, AARCH64 or EBC, which overrides target.txt's TARGET_ARCH definition. To specify more archs, please repeat this option.")\r
+    Parser.add_option("-a", "--arch", action="append", type="choice", choices=['IA32', 'X64', 'EBC', 'ARM', 'AARCH64'], dest="TargetArch",\r
+        help="ARCHS is one of list: IA32, X64, ARM, AARCH64 or EBC, which overrides target.txt's TARGET_ARCH definition. To specify more archs, please repeat this option.")\r
     Parser.add_option("-p", "--platform", action="callback", type="string", dest="PlatformFile", callback=SingleCheckCallback,\r
         help="Build the platform specified by the DSC file name argument, overriding target.txt's ACTIVE_PLATFORM definition.")\r
     Parser.add_option("-m", "--module", action="callback", type="string", dest="ModuleFile", callback=SingleCheckCallback,\r