# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
# which accompanies this distribution. The full text of the license may be found at\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
# which accompanies this distribution. The full text of the license may be found at\r
import re\r
import EdkLogger\r
from optparse import OptionParser\r
from Common.BuildToolError import *\r
from XmlRoutines import *\r
from CommonDataClass.CommonClass import *\r
import re\r
import EdkLogger\r
from optparse import OptionParser\r
from Common.BuildToolError import *\r
from XmlRoutines import *\r
from CommonDataClass.CommonClass import *\r
# The possible duplication is ensured to be removed.\r
#\r
# @param Section Section dictionary indexed by CPU architecture.\r
# The possible duplication is ensured to be removed.\r
#\r
# @param Section Section dictionary indexed by CPU architecture.\r
-# @param Arch CPU architecture: Ia32, X64, Ipf, ARM, Ebc or Common.\r
+# @param Arch CPU architecture: Ia32, X64, Ipf, ARM, AARCH64, Ebc or Common.\r
# @param Item The Item to be added to section dictionary.\r
#\r
def AddToSection(Section, Arch, Item):\r
# @param Item The Item to be added to section dictionary.\r
#\r
def AddToSection(Section, Arch, Item):\r
# @retval Section The string content of a section.\r
#\r
def GetSection(SectionName, Method, ObjectList):\r
# @retval Section The string content of a section.\r
#\r
def GetSection(SectionName, Method, ObjectList):\r
- SupportedArches = ["common", "Ia32", "X64", "Ipf", "Ebc", "ARM"]\r
+ SupportedArches = ["common", "Ia32", "X64", "Ipf", "Ebc", "ARM", "AARCH64"]\r
Header += "# " + Abstract + "\n#\n"\r
Header += "# " + Description.strip().replace("\n", "\n# ") + "\n"\r
Header += "# " + CopyRight + "\n#\n"\r
Header += "# " + Abstract + "\n#\n"\r
Header += "# " + Description.strip().replace("\n", "\n# ") + "\n"\r
Header += "# " + CopyRight + "\n#\n"\r
# @retval Options A optparse object containing the parsed options.\r
# @retval InputFile Path of an source file to be migrated.\r
#\r
# @retval Options A optparse object containing the parsed options.\r
# @retval InputFile Path of an source file to be migrated.\r
#\r
-def MigrationOptionParser(Source, Destinate, ToolName, VersionNumber = 1.0):\r
+def MigrationOptionParser(Source, Destinate, ToolName, VersionNumber=1.0):\r
# use clearer usage to override default usage message\r
UsageString = "%s [-a] [-v|-q] [-o <output_file>] <input_file>" % ToolName\r
Version = "%s Version %.2f" % (ToolName, VersionNumber)\r
# use clearer usage to override default usage message\r
UsageString = "%s [-a] [-v|-q] [-o <output_file>] <input_file>" % ToolName\r
Version = "%s Version %.2f" % (ToolName, VersionNumber)\r