]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/TargetTool/TargetTool.py
ShellPkg: Fix EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL_GUID to match UEFI Shell 2.1 spec
[mirror_edk2.git] / BaseTools / Source / Python / TargetTool / TargetTool.py
index 7993023150c4e57ea31a51e76bf09b3c6cbb28d9..8126aac59c09ee61e1c5ca5bd56d4953032406d4 100644 (file)
@@ -18,6 +18,7 @@ from optparse import OptionParser
 import Common.EdkLogger as EdkLogger\r
 import Common.BuildToolError as BuildToolError\r
 from Common.DataType import *\r
+from Common.BuildVersion import gBUILD_VERSION\r
 \r
 # To Do 1.set clean, 2. add item, if the line is disabled.\r
 \r
@@ -170,7 +171,7 @@ def GetConfigureKeyValue(self, Key):
                             "Build rule file %s does not exist!" % self.Opt.BUILD_RULE_FILE, RaiseError=False)\r
     return Line\r
 \r
-VersionNumber = "0.01"\r
+VersionNumber = ("0.01" + " " + gBUILD_VERSION)\r
 __version__ = "%prog Version " + VersionNumber\r
 __copyright__ = "Copyright (c) 2007 - 2010, Intel Corporation  All rights reserved."\r
 __usage__ = "%prog [options] {args} \\r
@@ -199,8 +200,8 @@ def RangeCheckCallback(option, opt_str, value, parser):
         \r
 def MyOptionParser():\r
     parser = OptionParser(version=__version__,prog="TargetTool.exe",usage=__usage__,description=__copyright__)\r
-    parser.add_option("-a", "--arch", action="append", type="choice", choices=['IA32','X64','IPF','EBC', 'ARM','0'], dest="TARGET_ARCH",\r
-        help="ARCHS is one of list: IA32, X64, IPF, ARM or EBC, which replaces target.txt's TARGET_ARCH definition. To specify more archs, please repeat this option. 0 will clear this setting in target.txt and can't combine with other value.")\r
+    parser.add_option("-a", "--arch", action="append", type="choice", choices=['IA32','X64','IPF','EBC', 'ARM', 'AARCH64','0'], dest="TARGET_ARCH",\r
+        help="ARCHS is one of list: IA32, X64, IPF, ARM, AARCH64 or EBC, which replaces target.txt's TARGET_ARCH definition. To specify more archs, please repeat this option. 0 will clear this setting in target.txt and can't combine with other value.")\r
     parser.add_option("-p", "--platform", action="callback", type="string", dest="DSCFILE", callback=SingleCheckCallback,\r
         help="Specify a DSC file, which replace target.txt's ACTIVE_PLATFORM definition. 0 will clear this setting in target.txt and can't combine with other value.")\r
     parser.add_option("-c", "--tooldef", action="callback", type="string", dest="TOOL_DEFINITION_FILE", callback=SingleCheckCallback,\r