X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=BaseTools%2FSource%2FPython%2FEot%2FEot.py;h=c4164199acf3ce972b3072d71d2a2e518d4fa707;hp=ee7f3197a130ab52177dfc2886e2eddbf2626fc7;hb=4231a8193ec0d52df7e0a101d96c51b1a2b7a996;hpb=40d841f6a8f84e75409178e19e69b95e01bada0f diff --git a/BaseTools/Source/Python/Eot/Eot.py b/BaseTools/Source/Python/Eot/Eot.py index ee7f3197a1..c4164199ac 100644 --- a/BaseTools/Source/Python/Eot/Eot.py +++ b/BaseTools/Source/Python/Eot/Eot.py @@ -1,7 +1,7 @@ ## @file # This file is used to be the main entrance of EOT tool # -# Copyright (c) 2008 - 2010, Intel Corporation. All rights reserved.
+# Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.
# This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License # which accompanies this distribution. The full text of the license may be found at @@ -14,7 +14,7 @@ ## # Import Modules # -import os, time, glob +import Common.LongFilePathOs as os, time, glob import Common.EdkLogger as EdkLogger import EotGlobalData from optparse import OptionParser @@ -28,7 +28,9 @@ from FvImage import * from array import array from Report import Report from Common.Misc import ParseConsoleLog +from Common.BuildVersion import gBUILD_VERSION from Parser import ConvertGuid +from Common.LongFilePathSupport import OpenLongFilePath as open ## Class Eot # @@ -45,7 +47,7 @@ class Eot(object): IncludeDirList=None, DecFileList=None, GuidList=None, LogFile=None, FvFileList="", MapFileList="", Report='Report.html', Dispatch=None): # Version and Copyright - self.VersionNumber = "0.02" + self.VersionNumber = ("0.02" + " " + gBUILD_VERSION) self.Version = "%prog Version " + self.VersionNumber self.Copyright = "Copyright (c) 2008 - 2010, Intel Corporation All rights reserved." self.Report = Report @@ -577,11 +579,11 @@ class Eot(object): # @param Option: The option list including log level setting # def SetLogLevel(self, Option): - if Option.verbose != None: + if Option.verbose is not None: EdkLogger.SetLevel(EdkLogger.VERBOSE) - elif Option.quiet != None: + elif Option.quiet is not None: EdkLogger.SetLevel(EdkLogger.QUIET) - elif Option.debug != None: + elif Option.debug is not None: EdkLogger.SetLevel(Option.debug + 1) else: EdkLogger.SetLevel(EdkLogger.INFO)