From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web11.46242.1640357435578431010 for ; Fri, 24 Dec 2021 06:50:36 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=fR1se0m0; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: bob.c.feng@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1640357435; x=1671893435; h=from:to:cc:subject:date:message-id; bh=Z6scYAzIWJfhBx/Kov1Zn4I1IWhlrX7L+UYCg9BFFAE=; b=fR1se0m05FjIzSZWjLGol27ehQLuE3gTA78YqdZ4FqEbf3psRmwVkkdX cWS+k2GDbXlT1E02l8DIcRPBLh1k2flhw3e/GsN9YXsolTmuQSwuumw73 /E3pVsApyJ1dEBcaM+TkDPlECXcEyyLrpKpMBXJozEXoqcynthheuuXAv OSew/kvTu8UboYAIVCCGlLmIpX4Q+Cni+EIDYCUlqUai5YI9MqwUIjt3O ZKfNyRlLPSO/OrYTx4Med/P0KqBFBb5UB7BZRO6AaBrsHL3xZCi8ylBMj l1jR/zO3w5DrGJP4DsCXcK5t/ZouCaV/rvT4poY7rBBPJzdS6sfEMPu3C g==; X-IronPort-AV: E=McAfee;i="6200,9189,10207"; a="240781304" X-IronPort-AV: E=Sophos;i="5.88,232,1635231600"; d="scan'208";a="240781304" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Dec 2021 06:50:34 -0800 X-IronPort-AV: E=Sophos;i="5.88,232,1635231600"; d="scan'208";a="468858127" Received: from bfeng1-mobl1.ccr.corp.intel.com ([10.255.29.229]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Dec 2021 06:50:33 -0800 From: "Bob Feng" To: devel@edk2.groups.io Cc: Bob Feng , Liming Gao , Yuwei Chen Subject: [Patch] BaseTools: Fix the bug of --cmd-len build option Date: Fri, 24 Dec 2021 22:50:08 +0800 Message-Id: <20211224145008.18872-1-bob.c.feng@intel.com> X-Mailer: git-send-email 2.18.0.windows.1 currently the --cmd-len build option does not work. This patch is going to fix this bug. Signed-off-by: Bob Feng Cc: Liming Gao Cc: Yuwei Chen --- BaseTools/Source/Python/AutoGen/AutoGenWorker.py | 1 + BaseTools/Source/Python/AutoGen/DataPipe.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/BaseTools/Source/Python/AutoGen/AutoGenWorker.py b/BaseTools/Source/Python/AutoGen/AutoGenWorker.py index 0425f1ab0b..eea15239d4 100755 --- a/BaseTools/Source/Python/AutoGen/AutoGenWorker.py +++ b/BaseTools/Source/Python/AutoGen/AutoGenWorker.py @@ -196,10 +196,11 @@ class AutoGenWorkerInProcess(mp.Process): workspacedir,active_p,target,toolchain,archlist ) self.Wa._SrcTimeStamp = self.data_pipe.Get("Workspace_timestamp") GlobalData.gGlobalDefines = self.data_pipe.Get("G_defines") GlobalData.gCommandLineDefines = self.data_pipe.Get("CL_defines") + GlobalData.gCommandMaxLength = self.data_pipe.Get('gCommandMaxLength') os.environ._data = self.data_pipe.Get("Env_Var") GlobalData.gWorkspace = workspacedir GlobalData.gDisableIncludePathCheck = False GlobalData.gFdfParser = self.data_pipe.Get("FdfParser") GlobalData.gDatabasePath = self.data_pipe.Get("DatabasePath") diff --git a/BaseTools/Source/Python/AutoGen/DataPipe.py b/BaseTools/Source/Python/AutoGen/DataPipe.py index 86ac2b928d..41af343f62 100755 --- a/BaseTools/Source/Python/AutoGen/DataPipe.py +++ b/BaseTools/Source/Python/AutoGen/DataPipe.py @@ -146,10 +146,12 @@ class MemoryDataPipe(DataPipe): self.DataContainer = {"G_defines": GlobalData.gGlobalDefines} self.DataContainer = {"CL_defines": GlobalData.gCommandLineDefines} + self.DataContainer = {"gCommandMaxLength": GlobalData.gCommandMaxLength} + self.DataContainer = {"Env_Var": {k:v for k, v in os.environ.items()}} self.DataContainer = {"PackageList": [(dec.MetaFile,dec.Arch) for dec in PlatformInfo.PackageList]} self.DataContainer = {"GuidDict": PlatformInfo.Platform._GuidDict} -- 2.18.0.windows.1