From nobody Thu Dec 26 13:34:36 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.zohomail.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 1502848492809705.5324910534191; Tue, 15 Aug 2017 18:54:52 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id D7F7721E2DA7A; Tue, 15 Aug 2017 18:52:24 -0700 (PDT) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (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 6217821E2DA63 for ; Tue, 15 Aug 2017 18:52:23 -0700 (PDT) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Aug 2017 18:54:48 -0700 Received: from zwei4-mobl.ccr.corp.intel.com ([10.239.196.109]) by FMSMGA003.fm.intel.com with ESMTP; 15 Aug 2017 18:54:47 -0700 X-Original-To: edk2-devel@lists.01.org X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,380,1498546800"; d="scan'208";a="890390633" From: zwei4 To: edk2-devel@lists.01.org Date: Wed, 16 Aug 2017 09:54:43 +0800 Message-Id: <20170816015443.21016-1-david.wei@intel.com> X-Mailer: git-send-email 2.11.0.windows.1 Subject: [edk2] [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017] Add Source Level Debug X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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" Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: zwei4 --- Platform/BroxtonPlatformPkg/BuildBios.sh | 1 - .../FspmWrapperPeim/FspmWrapperPeim.inf | 3 --- .../PlatformDsc/Components.IA32.dsc | 2 ++ .../BroxtonPlatformPkg/PlatformDsc/Defines.dsc | 6 +----- .../PlatformDsc/LibraryClasses.DxeDriver.dsc | 25 ++++++++++++++++++= ++++ Platform/BroxtonPlatformPkg/PlatformPkg.fdf | 4 ++-- Platform/BroxtonPlatformPkg/PlatformPkgIA32.dsc | 19 +--------------- Platform/BroxtonPlatformPkg/PlatformPkgX64.dsc | 19 +--------------- Platform/BroxtonPlatformPkg/PlatformPkgX64Gcc.dsc | 19 +--------------- 9 files changed, 33 insertions(+), 65 deletions(-) create mode 100644 Platform/BroxtonPlatformPkg/PlatformDsc/LibraryClasses.= DxeDriver.dsc diff --git a/Platform/BroxtonPlatformPkg/BuildBios.sh b/Platform/BroxtonPla= tformPkg/BuildBios.sh index 40d873e7a..3fa450b60 100644 --- a/Platform/BroxtonPlatformPkg/BuildBios.sh +++ b/Platform/BroxtonPlatformPkg/BuildBios.sh @@ -147,7 +147,6 @@ echo DEFINE SV_BIOS_ENABLE =3D $SV_BIOS_ENABLE >= > $Build_Macros echo DEFINE PPV_BIOS_ENABLE =3D $PPV_BIOS_ENABLE >> $Build_Macros echo DEFINE RVVP_BIOS_ENABLE =3D $RVVP_BIOS_ENABLE >> $Build_Macros echo DEFINE RVV_BIOS_ENABLE =3D $RVV_BIOS_ENABLE >> $Build_Macros -echo DEFINE SOURCE_DEBUG_ENABLE =3D $SrcDebug >> $Build_Macros =20 if [ $Arch =3D=3D "IA32" ]; then echo DEFINE X64_CONFIG =3D FALSE >> $Build_Macros diff --git a/Platform/BroxtonPlatformPkg/Common/SampleCode/IntelFsp2Wrapper= Pkg/FspmWrapperPeim/FspmWrapperPeim.inf b/Platform/BroxtonPlatformPkg/Commo= n/SampleCode/IntelFsp2WrapperPkg/FspmWrapperPeim/FspmWrapperPeim.inf index 334c8b02e..eeca8ac45 100644 --- a/Platform/BroxtonPlatformPkg/Common/SampleCode/IntelFsp2WrapperPkg/Fsp= mWrapperPeim/FspmWrapperPeim.inf +++ b/Platform/BroxtonPlatformPkg/Common/SampleCode/IntelFsp2WrapperPkg/Fsp= mWrapperPeim/FspmWrapperPeim.inf @@ -79,9 +79,6 @@ =20 [Sources] FspmWrapperPeim.c - ./../FspInitPei/SecMain.c - ./../FspInitPei/SecMain.h - ./../FspInitPei/FindPeiCore.c =20 [Ppis] gTopOfTemporaryRamPpiGuid ## PRODUCES diff --git a/Platform/BroxtonPlatformPkg/PlatformDsc/Components.IA32.dsc b/= Platform/BroxtonPlatformPkg/PlatformDsc/Components.IA32.dsc index 1341e082b..f8900ea4b 100644 --- a/Platform/BroxtonPlatformPkg/PlatformDsc/Components.IA32.dsc +++ b/Platform/BroxtonPlatformPkg/PlatformDsc/Components.IA32.dsc @@ -17,6 +17,8 @@ DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf PlatformSecLib|$(PLATFORM_PACKAGE_COMMON)/Library/PlatformSecLib/Vtf= 0PlatformSecLib.inf + PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/Bas= ePeCoffExtraActionLibNull.inf + DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNu= ll.inf gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x00 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x0 diff --git a/Platform/BroxtonPlatformPkg/PlatformDsc/Defines.dsc b/Platform= /BroxtonPlatformPkg/PlatformDsc/Defines.dsc index 69641ced3..a2da30bf7 100644 --- a/Platform/BroxtonPlatformPkg/PlatformDsc/Defines.dsc +++ b/Platform/BroxtonPlatformPkg/PlatformDsc/Defines.dsc @@ -163,8 +163,4 @@ DEFINE FSP_RAM_CODE_SIZE =3D $(FSP_IBBM_SIZE) DEFINE CAR_REGION_SIZE =3D 0x100000 =20 -!if $(TARGET) =3D=3D DEBUG - DEFINE SOURCE_DEBUG_ENABLE =3D TRUE -!else=20 - DEFINE SOURCE_DEBUG_ENABLE =3D FALSE -!endif \ No newline at end of file + DEFINE SOURCE_DEBUG_ENABLE =3D FALSE diff --git a/Platform/BroxtonPlatformPkg/PlatformDsc/LibraryClasses.DxeDriv= er.dsc b/Platform/BroxtonPlatformPkg/PlatformDsc/LibraryClasses.DxeDriver.d= sc new file mode 100644 index 000000000..d9c91e668 --- /dev/null +++ b/Platform/BroxtonPlatformPkg/PlatformDsc/LibraryClasses.DxeDriver.dsc @@ -0,0 +1,25 @@ +## @file +# Dxe Driver Library Classes Description. +# +# Copyright (c) 2017, Intel Corporation. All rights reserved.
+# +# This program and the accompanying materials +# are licensed and made available under the terms and conditions of the B= SD License +# which accompanies this distribution. The full text of the license may b= e found at +# http://opensource.org/licenses/bsd-license.php. +# +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IM= PLIED. +# +## + + !if $(PERFORMANCE_ENABLE) =3D=3D TRUE + PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLi= b.inf + TimerLib|$(PLATFORM_PACKAGE_COMMON)/Library/PlatformTscTimerLib/DxeTsc= TimerLib.inf + !endif + =20 + !if $(SOURCE_DEBUG_ENABLE) =3D=3D TRUE + DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.= inf + !else + DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull= .inf + !endif \ No newline at end of file diff --git a/Platform/BroxtonPlatformPkg/PlatformPkg.fdf b/Platform/Broxton= PlatformPkg/PlatformPkg.fdf index e3d767d72..c975a4c2a 100644 --- a/Platform/BroxtonPlatformPkg/PlatformPkg.fdf +++ b/Platform/BroxtonPlatformPkg/PlatformPkg.fdf @@ -236,7 +236,7 @@ FvNameGuid =3D B73FE497-B92E-416e-8326-45AD0D270092 =20 !if $(SOURCE_DEBUG_ENABLE) =3D=3D TRUE - INF SourceLevelDebugPkg/DebugAgentPei/DebugAgentPei.inf +# INF SourceLevelDebugPkg/DebugAgentPei/DebugAgentPei.inf !endif =20 INF $(PLATFORM_PACKAGE_COMMON)/SampleCode/IntelFsp2WrapperPkg/FspsWrappe= rPeim/FspsWrapperPeim.inf @@ -392,7 +392,7 @@ APRIORI DXE { !endif =20 !if $(SOURCE_DEBUG_ENABLE) =3D=3D TRUE -# INF SourceLevelDebugPkg/DebugAgentDxe/DebugAgentDxe.inf + INF SourceLevelDebugPkg/DebugAgentDxe/DebugAgentDxe.inf !endif =20 INF UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf diff --git a/Platform/BroxtonPlatformPkg/PlatformPkgIA32.dsc b/Platform/Bro= xtonPlatformPkg/PlatformPkgIA32.dsc index 3513e1bd5..8e7820f07 100644 --- a/Platform/BroxtonPlatformPkg/PlatformPkgIA32.dsc +++ b/Platform/BroxtonPlatformPkg/PlatformPkgIA32.dsc @@ -69,14 +69,6 @@ PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLi= bNull.inf !endif =20 -!if $(SOURCE_DEBUG_ENABLE) =3D=3D TRUE -[LibraryClasses.common.SEC] - DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib= .inf - -[LibraryClasses.common.DXE_CORE] - DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf -!endif - [LibraryClasses.IA32.PEIM, LibraryClasses.IA32.PEI_CORE, LibraryClasses.IA= 32.SEC] !if $(PERFORMANCE_ENABLE) =3D=3D TRUE !if $(INTEL_FPDT_ENABLE) =3D=3D TRUE @@ -115,16 +107,7 @@ !include $(PLATFORM_SI_PACKAGE)/SiPkgDxeLib.dsc =20 [LibraryClasses.Common.DXE_DRIVER] - !if $(PERFORMANCE_ENABLE) =3D=3D TRUE - PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLi= b.inf - TimerLib|$(PLATFORM_PACKAGE_COMMON)/Library/PlatformTscTimerLib/DxeTsc= TimerLib.inf - !endif - =20 - !if $(SOURCE_DEBUG_ENABLE) =3D=3D TRUE - DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.= inf - !else - DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull= .inf - !endif + !include PlatformDsc/LibraryClasses.DxeDriver.dsc =20 [LibraryClasses.Common.DXE_CORE] !include $(PLATFORM_NAME)/PlatformDsc/LibraryClasses.DxeCore.dsc diff --git a/Platform/BroxtonPlatformPkg/PlatformPkgX64.dsc b/Platform/Brox= tonPlatformPkg/PlatformPkgX64.dsc index 103bce9a4..3797b4a64 100644 --- a/Platform/BroxtonPlatformPkg/PlatformPkgX64.dsc +++ b/Platform/BroxtonPlatformPkg/PlatformPkgX64.dsc @@ -69,14 +69,6 @@ PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLi= bNull.inf !endif =20 -!if $(SOURCE_DEBUG_ENABLE) =3D=3D TRUE -[LibraryClasses.common.SEC] - DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib= .inf - -[LibraryClasses.common.DXE_CORE] - DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf -!endif - [LibraryClasses.IA32.PEIM, LibraryClasses.IA32.PEI_CORE, LibraryClasses.IA= 32.SEC] !if $(PERFORMANCE_ENABLE) =3D=3D TRUE !if $(INTEL_FPDT_ENABLE) =3D=3D TRUE @@ -115,16 +107,7 @@ !include $(PLATFORM_SI_PACKAGE)/SiPkgDxeLib.dsc =20 [LibraryClasses.Common.DXE_DRIVER] - !if $(PERFORMANCE_ENABLE) =3D=3D TRUE - PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLi= b.inf - TimerLib|$(PLATFORM_PACKAGE_COMMON)/Library/PlatformTscTimerLib/DxeTsc= TimerLib.inf - !endif - =20 - !if $(SOURCE_DEBUG_ENABLE) =3D=3D TRUE - DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.= inf - !else - DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull= .inf - !endif + !include PlatformDsc/LibraryClasses.DxeDriver.dsc =20 [LibraryClasses.Common.DXE_CORE] !include $(PLATFORM_NAME)/PlatformDsc/LibraryClasses.DxeCore.dsc diff --git a/Platform/BroxtonPlatformPkg/PlatformPkgX64Gcc.dsc b/Platform/B= roxtonPlatformPkg/PlatformPkgX64Gcc.dsc index bab962bbf..c24abf47d 100644 --- a/Platform/BroxtonPlatformPkg/PlatformPkgX64Gcc.dsc +++ b/Platform/BroxtonPlatformPkg/PlatformPkgX64Gcc.dsc @@ -69,14 +69,6 @@ PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLi= bNull.inf !endif =20 -!if $(SOURCE_DEBUG_ENABLE) =3D=3D TRUE -[LibraryClasses.common.SEC] - DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib= .inf - -[LibraryClasses.common.DXE_CORE] - DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf -!endif - [LibraryClasses.IA32.PEIM, LibraryClasses.IA32.PEI_CORE, LibraryClasses.IA= 32.SEC] !if $(PERFORMANCE_ENABLE) =3D=3D TRUE !if $(INTEL_FPDT_ENABLE) =3D=3D TRUE @@ -115,16 +107,7 @@ !include $(WORKSPACE)/Silicon/$(PLATFORM_SI_PACKAGE)/SiPkgDxeLib.dsc =20 [LibraryClasses.Common.DXE_DRIVER] - !if $(PERFORMANCE_ENABLE) =3D=3D TRUE - PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLi= b.inf - TimerLib|$(PLATFORM_PACKAGE_COMMON)/Library/PlatformTscTimerLib/DxeTsc= TimerLib.inf - !endif - =20 - !if $(SOURCE_DEBUG_ENABLE) =3D=3D TRUE - DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.= inf - !else - DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull= .inf - !endif + !include PlatformDsc/LibraryClasses.DxeDriver.dsc =20 [LibraryClasses.Common.DXE_CORE] !include PlatformDsc/LibraryClasses.DxeCore.dsc --=20 2.11.0.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel