summaryrefslogtreecommitdiff
path: root/BaseTools
diff options
context:
space:
mode:
authorHao Wu <hao.a.wu@intel.com>2016-09-29 22:47:38 +0800
committerLiming Gao <liming.gao@intel.com>2016-09-30 14:13:53 +0800
commited72804638c9b240477c5235d72c3823483813b2 (patch)
treefd9339e2fc95145351e1775db44ad901a6f3daa4 /BaseTools
parent0eb330424c194a4869b2e33f42928715a5cad34e (diff)
downloadedk2-ed72804638c9b240477c5235d72c3823483813b2.zip
edk2-ed72804638c9b240477c5235d72c3823483813b2.tar.gz
edk2-ed72804638c9b240477c5235d72c3823483813b2.tar.bz2
BaseTools Build: Fix build break for clean target in Linux
In Linux, Command needs to be String instead of list when Command run as shell with True. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Source/Python/build/build.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Python/build/build.py
index b003c67..f17b55c 100644
--- a/BaseTools/Source/Python/build/build.py
+++ b/BaseTools/Source/Python/build/build.py
@@ -265,10 +265,10 @@ def LaunchCommand(Command, WorkingDir):
# It could be a string or sequence. We find that if command is a string in following Popen(),
# ubuntu may fail with an error message that the command is not found.
# So here we may need convert command from string to list instance.
- if not isinstance(Command, list):
- if platform.system() != 'Windows':
+ if platform.system() != 'Windows':
+ if not isinstance(Command, list):
Command = Command.split()
- Command = ' '.join(Command)
+ Command = ' '.join(Command)
Proc = None
EndOfProcedure = None