diff options
author | Feng, Bob C <bob.c.feng@intel.com> | 2019-09-06 21:22:57 +0800 |
---|---|---|
committer | Feng, Bob C <bob.c.feng@intel.com> | 2019-09-11 09:43:59 +0800 |
commit | f23da86415fda47f16c1080d7c625a59c23e2bae (patch) | |
tree | 0ece04edfad2af7df069fe2cf630e1e0e07c53f3 /BaseTools | |
parent | e3c8311f8a196772bea453b832f33d34225488de (diff) | |
download | edk2-f23da86415fda47f16c1080d7c625a59c23e2bae.zip edk2-f23da86415fda47f16c1080d7c625a59c23e2bae.tar.gz edk2-f23da86415fda47f16c1080d7c625a59c23e2bae.tar.bz2 |
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>
Diffstat (limited to 'BaseTools')
-rw-r--r-- | BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py b/BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py index 037828e..0f691ae 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]):
|