From f23da86415fda47f16c1080d7c625a59c23e2bae Mon Sep 17 00:00:00 2001 From: "Feng, Bob C" Date: Fri, 6 Sep 2019 21:22:57 +0800 Subject: [PATCH] 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 Signed-off-by: Bob Feng Reviewed-by: Liming Gao --- BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]):