summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFeng, Bob C <bob.c.feng@intel.com>2019-09-06 21:22:57 +0800
committerFeng, Bob C <bob.c.feng@intel.com>2019-09-11 09:43:59 +0800
commitf23da86415fda47f16c1080d7c625a59c23e2bae (patch)
tree0ece04edfad2af7df069fe2cf630e1e0e07c53f3
parente3c8311f8a196772bea453b832f33d34225488de (diff)
downloadedk2-f23da86415fda47f16c1080d7c625a59c23e2bae.tar.gz
edk2-f23da86415fda47f16c1080d7c625a59c23e2bae.tar.bz2
edk2-f23da86415fda47f16c1080d7c625a59c23e2bae.zip
BaseTools: Fixed the build fail on Linux with --genfds-multi-thread
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1302 If GenSec input file not exist, the related command will fail and make will stop on Linux. GenSec input file is allow to be non-existent. This patch is to let "make" continue if gensec input file not exist. Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Bob Feng <bob.c.feng@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
-rw-r--r--BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py b/BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py
index 037828ea1c..0f691ae524 100644
--- a/BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py
+++ b/BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py
@@ -489,7 +489,7 @@ class GenFdsGlobalVariable:
if GlobalData.gGlobalDefines.get("FAMILY") == "MSFT":
Cmd = ['if', 'exist', Input[0]] + Cmd
else:
- Cmd = ['test', '-e', Input[0], "&&"] + Cmd
+ Cmd = ['-test', '-e', Input[0], "&&"] + Cmd
if ' '.join(Cmd).strip() not in GenFdsGlobalVariable.SecCmdList:
GenFdsGlobalVariable.SecCmdList.append(' '.join(Cmd).strip())
elif GenFdsGlobalVariable.NeedsUpdate(Output, list(Input) + [CommandFile]):