Skip to content
This repository has been archived by the owner on Feb 4, 2025. It is now read-only.

Commit

Permalink
WhitleyOpenBoardPkg/Build: Remove confusing build options
Browse files Browse the repository at this point in the history
There is an unnecessary inheritance of a SKX build option that has
confused the build settings.

Removed unused IE_ENABLE, PCH_PKG_OPTIONS, and SECURITY_OPTIONS

Fix a bug where changes in PlatformPkgConfig.dsc were not
taking effect because of missing [Defines] context.

Cc: Nate DeSimone <[email protected]>
Cc: Chasel Chiu <[email protected]>
Signed-off-by: Isaac Oram <[email protected]>
Reviewed-by: Nate DeSimone <[email protected]>
  • Loading branch information
iworam committed Mar 11, 2022
1 parent d74d4ec commit 7cd51aa
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 24 deletions.
12 changes: 4 additions & 8 deletions Platform/Intel/WhitleyOpenBoardPkg/Include/Dsc/BuildOptions.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,16 @@ DEFINE NVDIMM_OPTIONS =

!if $(CPUTARGET) == "ICX"
DEFINE CPU_TYPE_OPTIONS = -D ICX_HOST -D A0_HOST -D B0_HOST
DEFINE MAX_IMC_CH_OPTIONS = -D MAX_IMC=4 -D MAX_MC_CH=2
!elseif $(CPUTARGET) == "CPX"
DEFINE CPU_TYPE_OPTIONS = -D SKX_HOST -D CLX_HOST -D CPX_HOST -D A0_HOST -D B0_HOST
DEFINE MAX_IMC_CH_OPTIONS = -D MAX_IMC=2 -D MAX_MC_CH=3
!endif

DEFINE MAX_SOCKET_CORE_THREAD_OPTIONS = -D MAX_SOCKET=$(MAX_SOCKET) -D MAX_CORE=$(MAX_CORE) -D MAX_THREAD=$(MAX_THREAD)

DEFINE MRC_OPTIONS = -D LRDIMM_SUPPORT -D DDRT_SUPPORT

!if $(CPU_SKX_ONLY_SUPPORT) == FALSE
DEFINE MAX_IMC_CH_OPTIONS = -D MAX_IMC=4 -D MAX_MC_CH=2
!else
DEFINE MAX_IMC_CH_OPTIONS = -D MAX_IMC=2 -D MAX_MC_CH=3
!endif

DEFINE MAX_SAD_RULE_OPTION = -D MAX_SAD_RULES=24 -D MAX_DRAM_CLUSTERS=1

DEFINE LT_BUILD_OPTIONS = -D LT_FLAG
Expand All @@ -88,9 +84,9 @@ DEFINE IIO_STACK_OPTIONS = -D MAX_IIO_STACK=6 -D MAX_LOGIC_IIO_STACK=8

DEFINE PCH_BIOS_BUILD_OPTIONS = $(PCH_BUILD_OPTION) $(SC_PATH) $(SERVER_BUILD_OPTION)

DEFINE EDKII_DSC_FEATURE_BUILD_OPTIONS = $(CRB_EDKII_BUILD_OPTIONS) $(EDKII_DEBUG_BUILD_OPTIONS) $(PCH_BIOS_BUILD_OPTIONS) $(PCH_PKG_OPTIONS) $(MAX_SOCKET_CORE_THREAD_OPTIONS) $(MAX_IMC_CH_OPTIONS) $(MAX_SAD_RULE_OPTION) $(KTI_OPTIONS) $(IIO_STACK_OPTIONS) $(LT_BUILD_OPTIONS) $(SECURITY_OPTIONS) $(SPARING_SCRATCHPAD_OPTION) $(SCRATCHPAD_DEBUG_OPTION) $(NVDIMM_OPTIONS) -D EFI_PCI_IOV_SUPPORT -D WHEA_SUPPORT $(CPU_TYPE_OPTIONS) -D MMCFG_BASE_ADDRESS=0x80000000 -D DISABLE_NEW_DEPRECATED_INTERFACES $(MRC_OPTIONS) $(FSP_BUILD_OPTIONS)
DEFINE EDKII_DSC_FEATURE_BUILD_OPTIONS = $(CRB_EDKII_BUILD_OPTIONS) $(EDKII_DEBUG_BUILD_OPTIONS) $(PCH_BIOS_BUILD_OPTIONS) $(MAX_SOCKET_CORE_THREAD_OPTIONS) $(MAX_IMC_CH_OPTIONS) $(MAX_SAD_RULE_OPTION) $(KTI_OPTIONS) $(IIO_STACK_OPTIONS) $(LT_BUILD_OPTIONS) $(SPARING_SCRATCHPAD_OPTION) $(SCRATCHPAD_DEBUG_OPTION) $(NVDIMM_OPTIONS) -D EFI_PCI_IOV_SUPPORT -D WHEA_SUPPORT $(CPU_TYPE_OPTIONS) -D MMCFG_BASE_ADDRESS=0x80000000 -D DISABLE_NEW_DEPRECATED_INTERFACES $(MRC_OPTIONS) $(FSP_BUILD_OPTIONS)

DEFINE IE_OPTIONS = $(IE_PATH) -DIE_SUPPORT=0
DEFINE IE_OPTIONS = $(IE_PATH)

!if $(LINUX_GCC_BUILD) == TRUE
DEFINE EDK2_LINUX_BUILD_OPTIONS = -D EDK2_CTE_BUILD
Expand Down
8 changes: 4 additions & 4 deletions Platform/Intel/WhitleyOpenBoardPkg/PlatformPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
## This PCD specifies whether FPGA routine will be active
gSocketPkgFpgaGuid.PcdSktFpgaActive|TRUE

!if $(CPU_SKX_ONLY_SUPPORT) == TRUE
!if $(CPUTARGET) == "CPX"
gEfiCpRcPkgTokenSpaceGuid.PerBitMargin|FALSE
gEfiCpRcPkgTokenSpaceGuid.PcdSeparateCwlAdj|TRUE
!endif
Expand Down Expand Up @@ -343,7 +343,7 @@
# Disable Fast Warm Boot for Whitley Openboard Package
gEfiCpRcPkgTokenSpaceGuid.PcdMrcFastBootDefault|FALSE

!if $(CPU_SKX_ONLY_SUPPORT) == FALSE
!if $(CPUTARGET) == "ICX"
gCpuUncoreTokenSpaceGuid.PcdWaSerializationEn|FALSE
gEfiCpRcPkgTokenSpaceGuid.PcdMrcCmdVrefCenteringTrainingEnable|FALSE
!endif
Expand Down Expand Up @@ -426,7 +426,7 @@
#

gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07 # Enable status codes for debug, progress, and errors
gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000042 # Displayed messages: Error, Info, warn
gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000047 # Displayed messages: Error, Info, warn

gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0x80000000
gUefiCpuPkgTokenSpaceGuid.PcdCpuNumberOfReservedVariableMtrrs|0
Expand Down Expand Up @@ -856,7 +856,7 @@
DEFINE CPU_CPX_SUPPORT = FALSE
!endif
[PcdsFixedAtBuild]
!if ($(CPU_SKX_ONLY_SUPPORT) == TRUE)
!if $(CPUTARGET) == "CPX"
gSiPkgTokenSpaceGuid.PcdPostedCsrAccessSupported |FALSE
!endif
[LibraryClasses.common.DXE_DRIVER, LibraryClasses.common.UEFI_DRIVER, LibraryClasses.common.UEFI_APPLICATION]
Expand Down
7 changes: 1 addition & 6 deletions Platform/Intel/WhitleyOpenBoardPkg/PlatformPkgConfig.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# TRUE is ENABLE. FALSE is DISABLE.
#

[Defines]
DEFINE CRB_FLAG_ENABLE = TRUE
DEFINE DEBUG_FLAGS_ENABLE = FALSE

Expand All @@ -19,12 +20,6 @@ DEFINE PERFORMANCE_ENABLE = TRUE
DEFINE SERVER_BIOS_ENABLE = TRUE
DEFINE PCH_SERVER_BIOS_ENABLE = TRUE

!if $(CPUTARGET) == "CPX"
DEFINE CPU_SKX_ONLY_SUPPORT = TRUE
!else
DEFINE CPU_SKX_ONLY_SUPPORT = FALSE
!endif

!if $(CPUTARGET) == "CPX"
DEFINE CPU_CPX_SUPPORT = TRUE
!else
Expand Down
6 changes: 4 additions & 2 deletions Platform/Intel/WhitleyOpenBoardPkg/Uba/UbaDxeRpBoards.fdf
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
##

#
# Currently shared by all platforms
# Currently shared by all ICX platforms
#
INF $(RP_PKG)/Uba/UbaMain/StaticSkuDataDxe/StaticSkuDataDxe.inf
!if $(CPUTARGET) == "ICX"
INF $(RP_PKG)/Uba/UbaMain/StaticSkuDataDxe/StaticSkuDataDxe.inf
!endif

#
# Platform TypeWilsonCityRP
Expand Down
6 changes: 4 additions & 2 deletions Platform/Intel/WhitleyOpenBoardPkg/Uba/UbaRpBoards.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ $(RP_PKG)/Uba/BoardInit/Pei/BoardInitPei.inf {

[Components.X64]
#
# Currently shared by all platforms
# Currently shared by all ICX platforms
#
$(RP_PKG)/Uba/UbaMain/StaticSkuDataDxe/StaticSkuDataDxe.inf
!if $(CPUTARGET) == "ICX"
$(RP_PKG)/Uba/UbaMain/StaticSkuDataDxe/StaticSkuDataDxe.inf
!endif

#
# Platform TypeWilsonCityRP
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
# for 10nm
#

!if $(CPU_SKX_ONLY_SUPPORT) == TRUE
!if $(CPUTARGET) == "CPX"

gEfiCpRcPkgTokenSpaceGuid.PcdMrcBdatDefault|FALSE
gEfiCpRcPkgTokenSpaceGuid.PcdMrcWritePreambleTclkDefault|0x0
Expand Down Expand Up @@ -96,4 +96,4 @@
#
# enable NVDIMM support
#
gEfiCpRcPkgTokenSpaceGuid.PcdNvDimmEn|TRUE
gEfiCpRcPkgTokenSpaceGuid.PcdNvDimmEn|TRUE

0 comments on commit 7cd51aa

Please sign in to comment.