|
From: <gi...@us...> - 2010-08-09 09:59:17
|
Revision: 2011
http://edk2-buildtools.svn.sourceforge.net/edk2-buildtools/?rev=2011&view=rev
Author: gikidy
Date: 2010-08-09 09:59:10 +0000 (Mon, 09 Aug 2010)
Log Message:
-----------
Fix incompatible issues of call BPDG under Linux environment.
Modified Paths:
--------------
trunk/BaseTools/Source/Python/Common/VpdInfoFile.py
trunk/BaseTools/Source/Python/GNUmakefile
Added Paths:
-----------
trunk/BaseTools/BinWrappers/PosixLike/BPDG
Added: trunk/BaseTools/BinWrappers/PosixLike/BPDG
===================================================================
--- trunk/BaseTools/BinWrappers/PosixLike/BPDG (rev 0)
+++ trunk/BaseTools/BinWrappers/PosixLike/BPDG 2010-08-09 09:59:10 UTC (rev 2011)
@@ -0,0 +1 @@
+RunToolFromSource
\ No newline at end of file
Modified: trunk/BaseTools/Source/Python/Common/VpdInfoFile.py
===================================================================
--- trunk/BaseTools/Source/Python/Common/VpdInfoFile.py 2010-08-06 11:31:57 UTC (rev 2010)
+++ trunk/BaseTools/Source/Python/Common/VpdInfoFile.py 2010-08-09 09:59:10 UTC (rev 2011)
@@ -219,18 +219,19 @@
BaseName, ext = os.path.splitext(FileName)
OutputMapFileName = os.path.join(OutputDir, "%s.map" % BaseName)
OutputBinFileName = os.path.join(OutputDir, "%s.bin" % BaseName)
- cmd = [ToolPath]
- cmd += ["-o %s" % OutputBinFileName,]
- cmd += ["-m %s" % OutputMapFileName, ]
- cmd += ["-s",]
- cmd += ["-f",]
- cmd += ["-v",]
- cmd += [VpdFileName, ]
try:
- PopenObject = subprocess.Popen(' '.join(cmd), stdout=subprocess.PIPE, stderr= subprocess.PIPE)
+ PopenObject = subprocess.Popen([ToolPath,
+ '-o', OutputBinFileName,
+ '-m', OutputMapFileName,
+ '-s',
+ '-f',
+ '-v',
+ VpdFileName],
+ stdout=subprocess.PIPE,
+ stderr= subprocess.PIPE)
except Exception, X:
- EdkLogger.error("BPDG", BuildToolError.COMMAND_FAILURE, ExtraData="%s: %s" % (str(X), cmd[0]))
+ EdkLogger.error("BPDG", BuildToolError.COMMAND_FAILURE, ExtraData="%s" % (str(X)))
(out, error) = PopenObject.communicate()
print out
while PopenObject.returncode == None :
Modified: trunk/BaseTools/Source/Python/GNUmakefile
===================================================================
--- trunk/BaseTools/Source/Python/GNUmakefile 2010-08-06 11:31:57 UTC (rev 2010)
+++ trunk/BaseTools/Source/Python/GNUmakefile 2010-08-09 09:59:10 UTC (rev 2011)
@@ -1,5 +1,5 @@
## @file
-# Windows makefile for Python tools build.
+# Linux makefile for Python tools build.
#
# Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
# This program and the accompanying materials
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|