From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=fail (domain: intel.com, ip: , mailfrom: nathaniel.l.desimone@intel.com) Received: from mga14.intel.com (mga14.intel.com []) by groups.io with SMTP; Fri, 16 Aug 2019 17:53:53 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Aug 2019 17:53:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,395,1559545200"; d="scan'208";a="177350164" Received: from orsmsx104.amr.corp.intel.com ([10.22.225.131]) by fmsmga008.fm.intel.com with ESMTP; 16 Aug 2019 17:53:53 -0700 Received: from orsmsx151.amr.corp.intel.com (10.22.226.38) by ORSMSX104.amr.corp.intel.com (10.22.225.131) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 16 Aug 2019 17:53:53 -0700 Received: from orsmsx114.amr.corp.intel.com ([169.254.8.96]) by ORSMSX151.amr.corp.intel.com ([169.254.7.126]) with mapi id 14.03.0439.000; Fri, 16 Aug 2019 17:53:52 -0700 From: "Nate DeSimone" To: "Kubacki, Michael A" , "devel@edk2.groups.io" CC: "Chaganty, Rangasai V" , "Chiu, Chasel" , "Gao, Liming" , "Kinney, Michael D" , "Sinha, Ankit" Subject: Re: [edk2-platforms][PATCH V1 29/37] CoffeelakeSiliconPkg: Add package DSC files Thread-Topic: [edk2-platforms][PATCH V1 29/37] CoffeelakeSiliconPkg: Add package DSC files Thread-Index: AQHVVJEbIwvurdvbuUibSxXFVCuG06b+g1Ow Date: Sat, 17 Aug 2019 00:53:52 +0000 Message-ID: <02A34F284D1DA44BB705E61F7180EF0AAEE12ABB@ORSMSX114.amr.corp.intel.com> References: <20190817001603.30632-1-michael.a.kubacki@intel.com> <20190817001603.30632-30-michael.a.kubacki@intel.com> In-Reply-To: <20190817001603.30632-30-michael.a.kubacki@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZWViYzg2NzQtNmZhNy00NDE0LTgzYzUtM2JiY2QwMGQwYmJjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoidUJzNDYrOGJHRWZcLzJKODhOQkVqXC9ZeitTMmdxRTNDT3BURXR3elRvbDM1cGkzSlp2TzJ1eUJHSFV1MnI5V3BrIn0= x-ctpclassification: CTP_NT x-originating-ip: [10.22.254.139] MIME-Version: 1.0 Return-Path: nathaniel.l.desimone@intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Nate DeSimone -----Original Message----- From: Kubacki, Michael A=20 Sent: Friday, August 16, 2019 5:16 PM To: devel@edk2.groups.io Cc: Chaganty, Rangasai V ; Chiu, Chasel ; Desimone, Nathaniel L = ; Gao, Liming ; Kinney, Michael D ; Sinha, Ankit Subject: [edk2-platforms][PATCH V1 29/37] CoffeelakeSiliconPkg: Add package= DSC files REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D2082 Cc: Sai Chaganty Cc: Chasel Chiu Cc: Nate DeSimone Cc: Liming Gao Cc: Michael D Kinney Cc: Ankit Sinha Signed-off-by: Michael Kubacki --- Silicon/Intel/CoffeelakeSiliconPkg/CoffeelakeSiliconPkg.dsc | 215 ++++++++= ++++++++++++ Silicon/Intel/CoffeelakeSiliconPkg/SiPkgBuildOption.dsc | 130 ++++++++= ++++ Silicon/Intel/CoffeelakeSiliconPkg/SiPkgCommonLib.dsc | 69 +++++++ Silicon/Intel/CoffeelakeSiliconPkg/SiPkgDxe.dsc | 33 +++ Silicon/Intel/CoffeelakeSiliconPkg/SiPkgDxeLib.dsc | 37 ++++ Silicon/Intel/CoffeelakeSiliconPkg/SiPkgPei.dsc | 21 ++ Silicon/Intel/CoffeelakeSiliconPkg/SiPkgPeiLib.dsc | 44 ++++ 7 files changed, 549 insertions(+) diff --git a/Silicon/Intel/CoffeelakeSiliconPkg/CoffeelakeSiliconPkg.dsc b/= Silicon/Intel/CoffeelakeSiliconPkg/CoffeelakeSiliconPkg.dsc new file mode 100644 index 0000000000..37c77d8f63 --- /dev/null +++ b/Silicon/Intel/CoffeelakeSiliconPkg/CoffeelakeSiliconPkg.dsc @@ -0,0 +1,215 @@ +## @file +# Component description file for the Coffee Lake silicon package DSC file= . +# +# Copyright (c) 2019 Intel Corporation. All rights reserved.
# #=20 +SPDX-License-Identifier: BSD-2-Clause-Patent # ## + +[PcdsFeatureFlag] +gSiPkgTokenSpaceGuid.PcdTraceHubEnable |FALSE +gSiPkgTokenSpaceGuid.PcdSmmVariableEnable |TRUE +gSiPkgTokenSpaceGuid.PcdAtaEnable |FALSE +gSiPkgTokenSpaceGuid.PcdSiCsmEnable |FALSE +gSiPkgTokenSpaceGuid.PcdUseHpetTimer |TRUE +gSiPkgTokenSpaceGuid.PcdSgEnable |TRUE +gSiPkgTokenSpaceGuid.PcdAcpiEnable |FALSE +gSiPkgTokenSpaceGuid.PcdSourceDebugEnable |FALSE +gSiPkgTokenSpaceGuid.PcdPpmEnable |TRUE +gSiPkgTokenSpaceGuid.PcdIntegratedTouchEnable |FALSE +gSiPkgTokenSpaceGuid.PcdPttEnable |FALSE +gSiPkgTokenSpaceGuid.PcdJhiEnable |FALSE +gSiPkgTokenSpaceGuid.PcdSmbiosEnable |TRUE +gSiPkgTokenSpaceGuid.PcdS3Enable |TRUE +gSiPkgTokenSpaceGuid.PcdOverclockEnable |FALSE +gSiPkgTokenSpaceGuid.PcdCpuPowerOnConfigEnable |FALSE +gSiPkgTokenSpaceGuid.PcdBdatEnable |TRUE +gSiPkgTokenSpaceGuid.PcdIgdEnable |TRUE +gSiPkgTokenSpaceGuid.PcdPegEnable |TRUE +gSiPkgTokenSpaceGuid.PcdSaDmiEnable |TRUE +gSiPkgTokenSpaceGuid.PcdIpuEnable |TRUE +gSiPkgTokenSpaceGuid.PcdGnaEnable |TRUE +gSiPkgTokenSpaceGuid.PcdSaOcEnable |TRUE +gSiPkgTokenSpaceGuid.PcdVtdEnable |TRUE +gSiPkgTokenSpaceGuid.PcdOptimizeCompilerEnable |TRUE +gSiPkgTokenSpaceGuid.PcdPeiDisplayEnable |TRUE +gSiPkgTokenSpaceGuid.PcdCflCpuEnable |FALSE +gSiPkgTokenSpaceGuid.PcdOcWdtEnable |TRUE +gSiPkgTokenSpaceGuid.PcdSerialIoUartEnable |TRUE +gSiPkgTokenSpaceGuid.PcdSiCatalogDebugEnable |FALSE + +[PcdsFixedAtBuild.common] +gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress |0xE0000000 +gSiPkgTokenSpaceGuid.PcdTemporaryPciExpressRegionLength |0x10000000 + + gSiPkgTokenSpaceGuid.PcdSiliconInitTempPciBusMin |10 + gSiPkgTokenSpaceGuid.PcdSiliconInitTempPciBusMax |18 + +[PcdsDynamicDefault.common] +gSiPkgTokenSpaceGuid.PcdPciExpressRegionLength |0x10000000 + +## Specifies the AP wait loop state during POST phase. +# The value is defined as below. +# 1: Place AP in the Hlt-Loop state. +# 2: Place AP in the Mwait-Loop state. +# 3: Place AP in the Run-Loop state. +# @Prompt The AP wait loop state. +gUefiCpuPkgTokenSpaceGuid.PcdCpuApLoopMode|2 +## Specifies the AP target C-state for Mwait during POST phase. +# The default value 0 means C1 state. +# The value is defined as below.

# @Prompt The specified AP=20 +target C-state for Mwait. +gUefiCpuPkgTokenSpaceGuid.PcdCpuApTargetCstate|0 + +[Defines] + PLATFORM_NAME =3D CoffeelakeSiliconPkg + PLATFORM_GUID =3D A45CA44C-AB04-4932-A77C-5A7179F66A22 + PLATFORM_VERSION =3D 0.4 + DSC_SPECIFICATION =3D 0x00010005 + OUTPUT_DIRECTORY =3D Build/CoffeelakeSiliconPkg + SUPPORTED_ARCHITECTURES =3D IA32|X64 + BUILD_TARGETS =3D DEBUG|RELEASE + SKUID_IDENTIFIER =3D DEFAULT + + DEFINE PLATFORM_SI_PACKAGE =3D CoffeelakeSiliconPkg + + # + # Definition for Build Flag + # + !include $(PLATFORM_SI_PACKAGE)/SiPkgBuildOption.dsc + +[LibraryClasses.common] + # + # Entry point + # + =20 +PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.in +f + PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf + =20 +DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.in +f + =20 +UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntr +yPoint.inf + =20 +UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/Uefi +ApplicationEntryPoint.inf + =20 +PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePe +CoffExtraActionLibNull.inf + + # + # Basic + # + BaseLib|MdePkg/Library/BaseLib/BaseLib.inf + =20 + BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.i + nf PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf + CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf + IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf + =20 + PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci + .inf =20 + PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf + PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf + PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf + =20 + CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMa + intenanceLib.inf =20 + PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf + =20 + PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BaseP + eCoffGetEntryPointLib.inf + # + # UEFI & PI + # + =20 + UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiB + ootServicesTableLib.inf =20 + UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib + /UefiRuntimeServicesTableLib.inf =20 + UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf + UefiLib|MdePkg/Library/UefiLib/UefiLib.inf + DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf + =20 + PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibId + t/PeiServicesTablePointerLibIdt.inf + PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf + DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf + =20 + DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTabl + eLib.inf + + =20 + S3BootScriptLib|MdePkg/Library/BaseS3BootScriptLibNull/BaseS3BootScrip + tLibNull.inf S3IoLib|MdePkg/Library/BaseS3IoLib/BaseS3IoLib.inf + S3PciLib|MdePkg/Library/BaseS3PciLib/BaseS3PciLib.inf + + UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf + UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf + =20 + SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchroni + zationLib.inf + + =20 + DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/Bas + eDebugPrintErrorLevelLib.inf =20 + SmiHandlerProfileLib|Edk2/MdePkg/Library/SmiHandlerProfileLibNull/SmiH + andlerProfileLibNull.inf + + # + # Misc + # + DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf + =20 + PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLi + bNull.inf PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf + =20 + TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTempl + ate.inf =20 + PostCodeLib|MdePkg/Library/BasePostCodeLibDebug/BasePostCodeLibDebug.i + nf =20 + ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseRep + ortStatusCodeLibNull.inf =20 + MtrrLib|ClientSiliconPkg/Override/UefiCpuPkg/Library/MtrrLib/MtrrLib.i + nf # CSPO-0012: RoyalParkOverrideContent =20 + RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf + +####################################################################### +############################## + +# +# Silicon Init Common Library +# +!include $(PLATFORM_SI_PACKAGE)/SiPkgCommonLib.dsc +ConfigBlockLib|ClientSiliconPkg/Library/BaseConfigBlockLib/BaseConfigBl +ConfigBlockLib|ockLib.inf +PchTraceHubInitLib|ClientSiliconPkg/Library/BasePchTraceHubInitLib/Base +PchTraceHubInitLib|PchTraceHubInitLib.inf + +[LibraryClasses.IA32] +# +# PEI phase common +# + PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf + HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf + =20 +MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllo +cationLib.inf + =20 +ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiEx +tractGuidedSectionLib.inf + +####################################################################### +############################################################## + +# +# Silicon Init Pei Library +# +!include $(PLATFORM_SI_PACKAGE)/SiPkgPeiLib.dsc + +[LibraryClasses.IA32.SEC] + +[LibraryClasses.X64] + # + # DXE phase common + # + HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf + PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf + =20 +MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAl +locationLib.inf + =20 +ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeEx +tractGuidedSectionLib.inf + +# +# Hsti +# + HstiLib|MdePkg/Library/DxeHstiLib/DxeHstiLib.inf + +####################################################################### +############################ +# +# Silicon Init Dxe Library +# +!include $(PLATFORM_SI_PACKAGE)/SiPkgDxeLib.dsc + +[LibraryClasses.X64.PEIM] + +[LibraryClasses.X64.DXE_CORE] + HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf + PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf + +[LibraryClasses.X64.DXE_SMM_DRIVER] + =20 +SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTable +Lib.inf + =20 +MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllo +cationLib.inf + SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf + +[LibraryClasses.X64.SMM_CORE] + +[LibraryClasses.X64.UEFI_DRIVER] + PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf + +[LibraryClasses.X64.UEFI_APPLICATION] + PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf + +[Components.IA32] +!include $(PLATFORM_SI_PACKAGE)/SiPkgPei.dsc + +[Components.X64] +!include $(PLATFORM_SI_PACKAGE)/SiPkgDxe.dsc + diff --git a/Silicon/Intel/CoffeelakeSiliconPkg/SiPkgBuildOption.dsc b/Sili= con/Intel/CoffeelakeSiliconPkg/SiPkgBuildOption.dsc new file mode 100644 index 0000000000..b6d2058669 --- /dev/null +++ b/Silicon/Intel/CoffeelakeSiliconPkg/SiPkgBuildOption.dsc @@ -0,0 +1,130 @@ +## @file +# Silicon build option configuration file. +# +# Copyright (c) 2019 Intel Corporation. All rights reserved.
# #=20 +SPDX-License-Identifier: BSD-2-Clause-Patent # ## + +[BuildOptions] +# Define Build Options both for EDK and EDKII drivers. + +# SA +!if gSiPkgTokenSpaceGuid.PcdPttEnable =3D=3D TRUE + DEFINE PTT_BUILD_OPTION =3D -DPTT_FLAG=3D1 !else + DEFINE PTT_BUILD_OPTION =3D +!endif + +# +# System Agent +# +!if gSiPkgTokenSpaceGuid.PcdSgEnable =3D=3D TRUE + DEFINE DSC_SG_BUILD_OPTIONS =3D -DSG_SUPPORT=3D1 !else + DEFINE DSC_SG_BUILD_OPTIONS =3D +!endif + +!if gSiPkgTokenSpaceGuid.PcdBdatEnable =3D=3D TRUE + DEFINE BDAT_BUILD_OPTION =3D -DBDAT_SUPPORT=3D1 !else + DEFINE BDAT_BUILD_OPTION =3D +!endif + + DEFINE SLE_BUILD_OPTIONS =3D +!if $(TARGET) =3D=3D RELEASE +!if gSiPkgTokenSpaceGuid.PcdSiCatalogDebugEnable =3D=3D TRUE + DEFINE DEBUG_BUILD_OPTIONS =3D +!else + # MDEPKG_NDEBUG is introduced for the intention + # of size reduction when compiler optimization is disabled. If=20 +MDEPKG_NDEBUG is + # defined, then debug and assert related macros wrapped by it are the NU= LL implementations. + DEFINE DEBUG_BUILD_OPTIONS =3D -DMDEPKG_NDEBUG !endif !else + DEFINE DEBUG_BUILD_OPTIONS =3D +!endif + +!if ($(TARGET) =3D=3D RELEASE) AND=20 +(gSiPkgTokenSpaceGuid.PcdSiCatalogDebugEnable =3D=3D TRUE) + DEFINE RELEASE_CATALOG_BUILD_OPTIONS =3D -DRELEASE_CATALOG !else + DEFINE RELEASE_CATALOG_BUILD_OPTIONS =3D !endif + +!if gSiPkgTokenSpaceGuid.PcdOptimizeCompilerEnable =3D=3D FALSE + DEFINE OPTIMIZE_DISABLE_OPTIONS =3D -Od -GL- !else + DEFINE OPTIMIZE_DISABLE_OPTIONS =3D +!endif + + DEFINE HSLE_BUILD_OPTIONS =3D + +!if gSiPkgTokenSpaceGuid.PcdCflCpuEnable =3D=3D TRUE + DEFINE CPU_FLAGS =3D -DCPU_CFL +!else + DEFINE CPU_FLAGS =3D +!endif + + +DEFINE DSC_SIPKG_FEATURE_BUILD_OPTIONS =3D $(BDAT_BUILD_OPTION)=20 +$(PTT_BUILD_OPTION) $(DEBUG_BUILD_OPTIONS) DEFINE=20 +DSC_SIPKG_FEATURE_BUILD_OPTIONS =3D $(DSC_SIPKG_FEATURE_BUILD_OPTIONS)=20 +$(DSC_SG_BUILD_OPTIONS) $(SIMICS_BUILD_OPTIONS) $(CPU_FLAGS)=20 +$(HSLE_BUILD_OPTIONS) $(RELEASE_CATALOG_BUILD_OPTIONS)=20 +$(DSC_TXT_BUILD_OPTIONS) + +!if gSiPkgTokenSpaceGuid.PcdSourceDebugEnable =3D=3D TRUE + *_*_X64_GENFW_FLAGS =3D --keepexceptiontable !endif + +[BuildOptions.Common.EDKII] + +# +# For IA32 Global Build Flag +# + *_*_IA32_PP_FLAGS =3D $(DSC_SIPKG_FEATURE_BUILD_OPTIONS) + *_*_IA32_CC_FLAGS =3D $(DSC_SIPKG_FEATURE_BUILD_OPTIONS) -D PI= _SPECIFICATION_VERSION=3D0x00010015 -DASF_PEI + *_*_IA32_VFRPP_FLAGS =3D $(DSC_SIPKG_FEATURE_BUILD_OPTIONS) + *_*_IA32_APP_FLAGS =3D $(DSC_SIPKG_FEATURE_BUILD_OPTIONS) + *_*_IA32_ASLPP_FLAGS =3D $(DSC_SIPKG_FEATURE_BUILD_OPTIONS) + *_*_IA32_ASLCC_FLAGS =3D $(DSC_SIPKG_FEATURE_BUILD_OPTIONS) + +# +# For IA32 Specific Build Flag +# +MSFT: *_*_IA32_ASM_FLAGS =3D $(DSC_SIPKG_FEATURE_BUILD_OPTIONS) +MSFT: *_*_IA32_CC_FLAGS =3D $(DSC_SIPKG_FEATURE_BUILD_OPTIONS) $(OPT= IMIZE_DISABLE_OPTIONS) -D PI_SPECIFICATION_VERSION=3D0x00010015 -DASF_PEI +MSFT: *_*_IA32_VFRPP_FLAGS =3D $(DSC_SIPKG_FEATURE_BUILD_OPTIONS) $(OPT= IMIZE_DISABLE_OPTIONS) +MSFT: *_*_IA32_APP_FLAGS =3D $(DSC_SIPKG_FEATURE_BUILD_OPTIONS) $(OPT= IMIZE_DISABLE_OPTIONS) +MSFT: *_*_IA32_ASLPP_FLAGS =3D $(DSC_SIPKG_FEATURE_BUILD_OPTIONS) $(OPT= IMIZE_DISABLE_OPTIONS) +MSFT: *_*_IA32_ASLCC_FLAGS =3D $(DSC_SIPKG_FEATURE_BUILD_OPTIONS) $(OPT= IMIZE_DISABLE_OPTIONS) + +# +# For X64 Global Build Flag +# + *_*_X64_PP_FLAGS =3D $(DSC_SIPKG_FEATURE_BUILD_OPTIONS) + *_*_X64_CC_FLAGS =3D $(DSC_SIPKG_FEATURE_BUILD_OPTIONS) -D PI= _SPECIFICATION_VERSION=3D0x00010015 + *_*_X64_VFRPP_FLAGS =3D $(DSC_SIPKG_FEATURE_BUILD_OPTIONS) + *_*_X64_APP_FLAGS =3D $(DSC_SIPKG_FEATURE_BUILD_OPTIONS) + *_*_X64_ASLPP_FLAGS =3D $(DSC_SIPKG_FEATURE_BUILD_OPTIONS) + *_*_X64_ASLCC_FLAGS =3D $(DSC_SIPKG_FEATURE_BUILD_OPTIONS) + +# +# For X64 Specific Build Flag +# +MSFT: *_*_X64_ASM_FLAGS =3D $(DSC_SIPKG_FEATURE_BUILD_OPTIONS) +MSFT: *_*_X64_CC_FLAGS =3D $(DSC_SIPKG_FEATURE_BUILD_OPTIONS) $(OPT= IMIZE_DISABLE_OPTIONS) -D PI_SPECIFICATION_VERSION=3D0x00010015 +MSFT: *_*_X64_VFRPP_FLAGS =3D $(DSC_SIPKG_FEATURE_BUILD_OPTIONS) $(OPT= IMIZE_DISABLE_OPTIONS) +MSFT: *_*_X64_APP_FLAGS =3D $(DSC_SIPKG_FEATURE_BUILD_OPTIONS) $(OPT= IMIZE_DISABLE_OPTIONS) +MSFT: *_*_X64_ASLPP_FLAGS =3D $(DSC_SIPKG_FEATURE_BUILD_OPTIONS) +MSFT: *_*_X64_ASLCC_FLAGS =3D $(DSC_SIPKG_FEATURE_BUILD_OPTIONS) + +# +# For Xcode Specific Build Flag +# +# Override assembly code build order +*_XCODE5_*_*_BUILDRULEORDER =3D nasm S s +# Align 47bfbd7f8069e523798ef973c8eb0abd5c6b0746 to fix the usage of=20 +VA_START in undefined way *_XCODE5_*_CC_FLAGS =3D -Wno-varargs + +# Force PE/COFF sections to be aligned at 4KB boundaries to support=20 +page level protection of runtime modules [BuildOptions.common.EDKII.DXE_RU= NTIME_DRIVER] + MSFT: *_*_*_DLINK_FLAGS =3D /ALIGN:4096 + GCC: *_GCC*_*_DLINK_FLAGS =3D -z common-page-size=3D0x1000 diff --git a/Silicon/Intel/CoffeelakeSiliconPkg/SiPkgCommonLib.dsc b/Silico= n/Intel/CoffeelakeSiliconPkg/SiPkgCommonLib.dsc new file mode 100644 index 0000000000..2df08c6d01 --- /dev/null +++ b/Silicon/Intel/CoffeelakeSiliconPkg/SiPkgCommonLib.dsc @@ -0,0 +1,69 @@ +## @file +# Component description file for the Coffee Lake silicon package both PEI= and DXE libraries DSC file. +# +# Copyright (c) 2019 Intel Corporation. All rights reserved.
# #=20 +SPDX-License-Identifier: BSD-2-Clause-Patent # ## + +# +# Set PCH generation according PCD. +# The DEFINE will be used to select PCH library INF file corresponding=20 +to PCH generation # DEFINE PCH =3D Cnl + +# +# Cpu +# + CpuPlatformLib|$(PLATFORM_SI_PACKAGE)/Cpu/Library/PeiDxeSmmCpuPlatform + CpuPlatformLib|Lib/PeiDxeSmmCpuPlatformLib.inf + CpuMailboxLib|$(PLATFORM_SI_PACKAGE)/Cpu/Library/BaseCpuMailboxLibNull + CpuMailboxLib|/BaseCpuMailboxLibNull.inf + +# +# Me +# + +# +# Pch +# + PchCycleDecodingLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/PeiDxeSmmPchCyc + PchCycleDecodingLib|leDecodingLib/PeiDxeSmmPchCycleDecodingLib.inf + PchGbeLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/PeiDxeSmmPchGbeLib/PeiDxe + PchGbeLib|SmmPchGbeLib.inf + PchInfoLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/PeiDxeSmmPchInfoLib/PeiD + PchInfoLib|xeSmmPchInfoLib$(PCH).inf + SataLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/PeiDxeSmmSataLib/PeiDxeSmmS + SataLib|ataLib$(PCH).inf + PchPcieRpLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/PeiDxeSmmPchPcieRpLib/ + PchPcieRpLib|PeiDxeSmmPchPcieRpLib.inf + PchPcrLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/PeiDxeSmmPchPcrLib/PeiDxe + PchPcrLib|SmmPchPcrLib.inf + PmcLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/PeiDxeSmmPmcLib/PeiDxeSmmPmc + PmcLib|Lib.inf + + PchSbiAccessLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/PeiDxeSmmPchSbiAcce + PchSbiAccessLib|ssLib/PeiDxeSmmPchSbiAccessLib.inf + GpioLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/PeiDxeSmmGpioLib/PeiDxeSmmG + GpioLib|pioLib.inf +!if gSiPkgTokenSpaceGuid.PcdSerialIoUartEnable =3D=3D TRUE + PchSerialIoUartLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/PeiDxeSmmPchSeri + PchSerialIoUartLib|alIoUartLib/PeiDxeSmmPchSerialIoUartLib.inf +!else + PchSerialIoUartLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/BasePchSerialIoU + PchSerialIoUartLib|artLibNull/BasePchSerialIoUartLibNull.inf +!endif + PchSerialIoLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/PeiDxeSmmPchSerialIo + PchSerialIoLib|Lib/PeiDxeSmmPchSerialIoLibCnl.inf + PchEspiLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/PeiDxeSmmPchEspiLib/PeiD + PchEspiLib|xeSmmPchEspiLib.inf + PchWdtCommonLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/PeiDxeSmmPchWdtComm + PchWdtCommonLib|onLib/PeiDxeSmmPchWdtCommonLib.inf + ResetSystemLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/BaseResetSystemLib/B + ResetSystemLib|aseResetSystemLib.inf + SmbusLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/BaseSmbusLib/BaseSmbusLib. + SmbusLib|inf + BiosLockLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/PeiDxeSmmBiosLockLib/Pe + BiosLockLib|iDxeSmmBiosLockLib.inf + #private + PchPciExpressHelpersLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/Private/Pei + PchPciExpressHelpersLib|DxeSmmPchPciExpressHelpersLib/PeiDxeSmmPchPciE + PchPciExpressHelpersLib|xpressHelpersLib.inf + PchInitCommonLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/Private/PeiDxeSmmP + PchInitCommonLib|chInitCommonLib/PeiDxeSmmPchInitCommonLib.inf + PchSpiCommonLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/Private/BasePchSpiC + PchSpiCommonLib|ommonLib/BasePchSpiCommonLib.inf + GpioPrivateLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/Private/PeiDxeSmmGpi + GpioPrivateLib|oPrivateLib/PeiDxeSmmGpioPrivateLibCnl.inf + PchPsfPrivateLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/Private/PeiDxeSmmP + PchPsfPrivateLib|chPsfPrivateLib/PeiDxeSmmPchPsfPrivateLib$(PCH).inf + PmcPrivateLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/Private/PeiDxeSmmPmcP + PmcPrivateLib|rivateLib/PeiDxeSmmPmcPrivateLibCnl.inf + PmcPrivateLibWithS3|$(PLATFORM_SI_PACKAGE)/Pch/Library/Private/PeiDxeS + PmcPrivateLibWithS3|mmPmcPrivateLib/PeiDxeSmmPmcPrivateLibWithS3.inf + PchDmiLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/Private/PeiDxeSmmPchDmiLi + PchDmiLib|b/PeiDxeSmmPchDmiLib.inf + PchDmiWithS3Lib|$(PLATFORM_SI_PACKAGE)/Pch/Library/Private/PeiDxeSmmPc + PchDmiWithS3Lib|hDmiLib/PeiDxeSmmPchDmiWithS3Lib.inf + SiScheduleResetLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/Private/BaseSiSc + SiScheduleResetLib|heduleResetLib/BaseSiScheduleResetLib.inf + +# +# SA +# + SaPlatformLib|$(PLATFORM_SI_PACKAGE)/SystemAgent/Library/PeiDxeSmmSaPl + SaPlatformLib|atformLib/PeiDxeSmmSaPlatformLib.inf + +# +# Memory +# diff --git a/Silicon/Intel/CoffeelakeSiliconPkg/SiPkgDxe.dsc b/Silicon/Inte= l/CoffeelakeSiliconPkg/SiPkgDxe.dsc new file mode 100644 index 0000000000..07677ece1a --- /dev/null +++ b/Silicon/Intel/CoffeelakeSiliconPkg/SiPkgDxe.dsc @@ -0,0 +1,33 @@ +## @file +# Component description file for the Coffee Lake silicon package DXE driv= ers. +# +# Copyright (c) 2019 Intel Corporation. All rights reserved.
# #=20 +SPDX-License-Identifier: BSD-2-Clause-Patent # ## + +# +# Common +# + +# +# Pch +# + $(PLATFORM_SI_PACKAGE)/Pch/PchInit/Dxe/PchInitDxeCnl.inf + $(PLATFORM_SI_PACKAGE)/Pch/SmmControl/RuntimeDxe/SmmControl.inf + + $(PLATFORM_SI_PACKAGE)/Pch/Spi/Smm/PchSpiSmm.inf + + $(PLATFORM_SI_PACKAGE)/Pch/PchSmiDispatcher/Smm/PchSmiDispatcher.inf + $(PLATFORM_SI_PACKAGE)/Pch/PchInit/Smm/PchInitSmm.inf + +# +# SystemAgent +# + $(PLATFORM_SI_PACKAGE)/SystemAgent/SmmAccess/Dxe/SmmAccess.inf + +!if gSiPkgTokenSpaceGuid.PcdAcpiEnable =3D=3D TRUE + $(PLATFORM_SI_PACKAGE)/SystemAgent/AcpiTables/SaAcpiTables.inf + $(PLATFORM_SI_PACKAGE)/SystemAgent/AcpiTables/SaSsdt/SaSsdt.inf +!endif diff --git a/Silicon/Intel/CoffeelakeSiliconPkg/SiPkgDxeLib.dsc b/Silicon/I= ntel/CoffeelakeSiliconPkg/SiPkgDxeLib.dsc new file mode 100644 index 0000000000..214de06d58 --- /dev/null +++ b/Silicon/Intel/CoffeelakeSiliconPkg/SiPkgDxeLib.dsc @@ -0,0 +1,37 @@ +## @file +# Component description file for the Coffee Lake silicon package DXE libr= aries. +# +# Copyright (c) 2019 Intel Corporation. All rights reserved.
# #=20 +SPDX-License-Identifier: BSD-2-Clause-Patent # ## + +# +# Silicon Init Dxe Library +# + +# +# Common +# +!if gSiPkgTokenSpaceGuid.PcdAcpiEnable =3D=3D TRUE + AslUpdateLib|$(PLATFORM_SI_PACKAGE)/Library/DxeAslUpdateLib/DxeAslUpda + AslUpdateLib|teLib.inf +!else + AslUpdateLib|$(PLATFORM_SI_PACKAGE)/Library/DxeAslUpdateLibNull/DxeAsl + AslUpdateLib|UpdateLibNull.inf +!endif + SiConfigBlockLib|$(PLATFORM_SI_PACKAGE)/Library/BaseSiConfigBlockLib/B + SiConfigBlockLib|aseSiConfigBlockLib.inf + +# +# Pch +# + PchHdaLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/Private/DxePchHdaLib/DxeP + PchHdaLib|chHdaLib.inf + ResetSystemLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/DxeResetSystemLib/Dx + ResetSystemLib|eResetSystemLib.inf + DxePchPolicyLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/DxePchPolicyLib/Dxe + DxePchPolicyLib|PchPolicyLib.inf + GpioHelpersLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/Private/BaseGpioHelp + GpioHelpersLib|ersLibNull/BaseGpioHelpersLibNull.inf + GpioNameBufferLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/Private/DxeGpioNa + GpioNameBufferLib|meBufferLib/DxeGpioNameBufferLib.inf + SmmPchPrivateLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/Private/SmmPchPriv + SmmPchPrivateLib|ateLib/SmmPchPrivateLib.inf + +# +# SystemAgent +# + DxeSaPolicyLib|$(PLATFORM_SI_PACKAGE)/SystemAgent/Library/DxeSaPolicyL + DxeSaPolicyLib|ib/DxeSaPolicyLib.inf diff --git a/Silicon/Intel/CoffeelakeSiliconPkg/SiPkgPei.dsc b/Silicon/Inte= l/CoffeelakeSiliconPkg/SiPkgPei.dsc new file mode 100644 index 0000000000..f30c7e0ae1 --- /dev/null +++ b/Silicon/Intel/CoffeelakeSiliconPkg/SiPkgPei.dsc @@ -0,0 +1,21 @@ +## @file +# Component description file for theCoffee Lake silicon package PEI drive= rs. +# +# Copyright (c) 2019 Intel Corporation. All rights reserved.
# #=20 +SPDX-License-Identifier: BSD-2-Clause-Patent # ## + +# +# Common +# + +# +# SystemAgent +# + +# +# Cpu +# + diff --git a/Silicon/Intel/CoffeelakeSiliconPkg/SiPkgPeiLib.dsc b/Silicon/I= ntel/CoffeelakeSiliconPkg/SiPkgPeiLib.dsc new file mode 100644 index 0000000000..6e244a6ded --- /dev/null +++ b/Silicon/Intel/CoffeelakeSiliconPkg/SiPkgPeiLib.dsc @@ -0,0 +1,44 @@ +## @file +# Component description file for the Coffee Lake silicon package PEI libr= aries. +# +# Copyright (c) 2019 Intel Corporation. All rights reserved.
# #=20 +SPDX-License-Identifier: BSD-2-Clause-Patent # ## + +# +# Silicon Init Pei Library +# + SiPolicyLib|$(PLATFORM_SI_PACKAGE)/Library/PeiSiPolicyLib/PeiSiPolicyL + SiPolicyLib|ib.inf + SiConfigBlockLib|$(PLATFORM_SI_PACKAGE)/Library/BaseSiConfigBlockLib/B + SiConfigBlockLib|aseSiConfigBlockLib.inf + StallPpiLib|$(PLATFORM_SI_PACKAGE)/Library/PeiInstallStallPpiLib/PeiSt + StallPpiLib|allPpiLib.inf + +# +# Pch +# + PchPolicyLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/PeiPchPolicyLib/PeiPch + PchPolicyLib|PolicyLibCnl.inf +!if gSiPkgTokenSpaceGuid.PcdOcWdtEnable =3D=3D TRUE + OcWdtLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/PeiOcWdtLib/PeiOcWdtLib.in + OcWdtLib|f +!else + OcWdtLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/PeiOcWdtLibNull/PeiOcWdtLi + OcWdtLib|bNull.inf +!endif + ResetSystemLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/PeiResetSystemLib/Pe + ResetSystemLib|iResetSystemLib.inf + PchResetLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/PeiPchResetLib/PeiPchRe + PchResetLib|setLib.inf + SpiLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/PeiSpiLib/PeiSpiLib.inf + GpioHelpersLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/Private/PeiGpioHelpe + GpioHelpersLib|rsLib/PeiGpioHelpersLib.inf + GpioNameBufferLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/Private/PeiGpioNa + GpioNameBufferLib|meBufferLib/PeiGpioNameBufferLib.inf + +# +# Me +# + PeiMePolicyLib|$(PLATFORM_SI_PACKAGE)/Me/Library/PeiMePolicyLib/PeiMeP + PeiMePolicyLib|olicyLib.inf + +# +# SA +# + =20 +PeiSaPolicyLib|$(PLATFORM_SI_PACKAGE)/SystemAgent/Library/PeiSaPolicyLi +b/PeiSaPolicyLib.inf +# +# Cpu +# + CpuPolicyLib|$(PLATFORM_SI_PACKAGE)/Cpu/Library/PeiCpuPolicyLib/PeiCpu + CpuPolicyLib|PolicyLib.inf -- 2.16.2.windows.1