From nobody Sat Nov 2 14:26:38 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zoho.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org; Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1487779403604785.4701883150044; Wed, 22 Feb 2017 08:03:23 -0800 (PST) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id E712C82230; Wed, 22 Feb 2017 08:03:21 -0800 (PST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id E36CE8222D for ; Wed, 22 Feb 2017 08:03:20 -0800 (PST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP; 22 Feb 2017 08:03:20 -0800 Received: from shwdeopenpsi168.ccr.corp.intel.com ([10.239.158.121]) by orsmga003.jf.intel.com with ESMTP; 22 Feb 2017 08:03:18 -0800 X-Original-To: edk2-devel@lists.01.org X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,194,1484035200"; d="scan'208";a="936881671" From: Yonghong Zhu To: edk2-devel@lists.01.org Date: Thu, 23 Feb 2017 00:03:15 +0800 Message-Id: <1487779395-10744-1-git-send-email-yonghong.zhu@intel.com> X-Mailer: git-send-email 2.6.1.windows.1 Subject: [edk2] [Patch] BaseTools: Fix the regression issue caused by commit dc4c77 X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Liming Gao MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" In the last commit dc4c77, the _GetHeaderInfo will be called more than once, which cause the self._ConstructorList.append(Value) append some duplicate value. Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yonghong Zhu Reviewed-by: Liming Gao Tested-by: Ard Biesheuvel Tested-by: Laszlo Ersek --- BaseTools/Source/Python/Workspace/WorkspaceDatabase.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py b/BaseT= ools/Source/Python/Workspace/WorkspaceDatabase.py index 0686721..c1af5c7 100644 --- a/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py +++ b/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py @@ -1828,12 +1828,10 @@ class InfBuildData(ModuleBuildClassObject): self.__Macros =3D {} # EDK_GLOBAL defined macros can be applied to EDK module if self.AutoGenVersion < 0x00010005: self.__Macros.update(GlobalData.gEdkGlobal) self.__Macros.update(GlobalData.gGlobalDefines) - else: - self.__Macros.update(self.Defines) return self.__Macros =20 ## Get architecture def _GetArch(self): return self._Arch @@ -1894,10 +1892,11 @@ class InfBuildData(ModuleBuildClassObject): if Name in self: self[Name] =3D Value if self._Defs =3D=3D None: self._Defs =3D sdict() self._Defs[Name] =3D Value + self._Macros[Name] =3D Value # some special items in [Defines] section need special treatme= nt elif Name in ('EFI_SPECIFICATION_VERSION', 'UEFI_SPECIFICATION= _VERSION', 'EDK_RELEASE_VERSION', 'PI_SPECIFICATION_VERSION'): if Name in ('EFI_SPECIFICATION_VERSION', 'UEFI_SPECIFICATI= ON_VERSION'): Name =3D 'UEFI_SPECIFICATION_VERSION' if self._Specification =3D=3D None: @@ -1954,10 +1953,11 @@ class InfBuildData(ModuleBuildClassObject): self._CustomMakefile[TokenList[0]] =3D TokenList[1] else: if self._Defs =3D=3D None: self._Defs =3D sdict() self._Defs[Name] =3D Value + self._Macros[Name] =3D Value =20 # # Retrieve information in sections specific to Edk.x modules # if self.AutoGenVersion >=3D 0x00010005: --=20 2.6.1.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel