You've already forked edk2-platforms
mirror of
https://github.com/Dasharo/edk2-platforms.git
synced 2026-03-06 14:51:43 -08:00
CometlakeOpenBoardPkg/Build: Reduce unnecessary code
Leverage common includes to reduce duplicated or low value code. Cc: Chasel Chiu <chasel.chiu@intel.com> Cc: Nate DeSimone <nathaniel.l.desimone@intel.com> Cc: Rangasai V Chaganty <rangasai.v.chaganty@intel.com> Cc: Deepika Kethi Reddy <deepika.kethi.reddy@intel.com> Cc: Kathappan Esakkithevar <kathappan.esakkithevar@intel.com> Signed-off-by: Isaac Oram <isaac.w.oram@intel.com> Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
This commit is contained in:
@@ -125,42 +125,18 @@
|
||||
######################################
|
||||
# Platform Configuration
|
||||
######################################
|
||||
gMinPlatformPkgTokenSpaceGuid.PcdBootToShellOnly|FALSE
|
||||
gMinPlatformPkgTokenSpaceGuid.PcdStopAfterDebugInit|FALSE
|
||||
gMinPlatformPkgTokenSpaceGuid.PcdStopAfterMemInit|FALSE
|
||||
gMinPlatformPkgTokenSpaceGuid.PcdPerformanceEnable|FALSE
|
||||
gMinPlatformPkgTokenSpaceGuid.PcdTpm2Enable|FALSE
|
||||
gMinPlatformPkgTokenSpaceGuid.PcdUefiSecureBootEnable|FALSE
|
||||
gMinPlatformPkgTokenSpaceGuid.PcdSerialTerminalEnable|FALSE
|
||||
#
|
||||
# MinPlatform common include for required feature PCD
|
||||
# These PCD must be set before the core include files, CoreCommonLib,
|
||||
# CorePeiLib, and CoreDxeLib.
|
||||
# Optional MinPlatformPkg features should be enabled after this
|
||||
#
|
||||
!include MinPlatformPkg/Include/Dsc/MinPlatformFeaturesPcd.dsc.inc
|
||||
|
||||
!if gMinPlatformPkgTokenSpaceGuid.PcdBootStage >= 1
|
||||
gMinPlatformPkgTokenSpaceGuid.PcdStopAfterDebugInit|TRUE
|
||||
!endif
|
||||
|
||||
!if gMinPlatformPkgTokenSpaceGuid.PcdBootStage >= 2
|
||||
gMinPlatformPkgTokenSpaceGuid.PcdStopAfterDebugInit|FALSE
|
||||
gMinPlatformPkgTokenSpaceGuid.PcdStopAfterMemInit|TRUE
|
||||
!endif
|
||||
|
||||
!if gMinPlatformPkgTokenSpaceGuid.PcdBootStage >= 3
|
||||
gMinPlatformPkgTokenSpaceGuid.PcdStopAfterMemInit|FALSE
|
||||
gMinPlatformPkgTokenSpaceGuid.PcdBootToShellOnly|TRUE
|
||||
!endif
|
||||
|
||||
!if gMinPlatformPkgTokenSpaceGuid.PcdBootStage >= 4
|
||||
gMinPlatformPkgTokenSpaceGuid.PcdBootToShellOnly|FALSE
|
||||
!endif
|
||||
|
||||
!if gMinPlatformPkgTokenSpaceGuid.PcdBootStage >= 5
|
||||
gMinPlatformPkgTokenSpaceGuid.PcdUefiSecureBootEnable|TRUE
|
||||
gMinPlatformPkgTokenSpaceGuid.PcdTpm2Enable|TRUE
|
||||
!endif
|
||||
|
||||
!if $(TARGET) == DEBUG
|
||||
gMinPlatformPkgTokenSpaceGuid.PcdSmiHandlerProfileEnable|TRUE
|
||||
!else
|
||||
gMinPlatformPkgTokenSpaceGuid.PcdSmiHandlerProfileEnable|FALSE
|
||||
!endif
|
||||
#
|
||||
# Commonly used MinPlatform feature configuration logic that maps functionity to stage
|
||||
#
|
||||
!include BoardModulePkg/Include/Dsc/CommonStageConfig.dsc.inc
|
||||
|
||||
######################################
|
||||
# Board Configuration
|
||||
@@ -195,9 +171,6 @@
|
||||
!endif
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x5000
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdReclaimVariableSpaceAtEndOfDxe|TRUE
|
||||
!if gMinPlatformPkgTokenSpaceGuid.PcdSmiHandlerProfileEnable == TRUE
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdSmiHandlerProfilePropertyMask|0x1
|
||||
!endif
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdSrIovSupport|FALSE
|
||||
!if $(TARGET) == DEBUG
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseHardwareFlowControl|FALSE
|
||||
|
||||
Reference in New Issue
Block a user