Skip to content

Commit

Permalink
JadePkg: Enable Redfish Host Interface
Browse files Browse the repository at this point in the history
This enables Redfish Host Interface for support the future Redfish
features, such as Remote BIOS Configuration.

Signed-off-by: Nhi Pham <[email protected]>
  • Loading branch information
nhivp committed Oct 11, 2024
1 parent 6c76e93 commit 3585566
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
18 changes: 18 additions & 0 deletions Platform/Ampere/JadePkg/Jade.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
DEFINE NETWORK_HTTP_BOOT_ENABLE = TRUE
DEFINE NETWORK_ALLOW_HTTP_CONNECTIONS = TRUE
DEFINE NETWORK_TLS_ENABLE = FALSE
DEFINE REDFISH_ENABLE = TRUE

!include MdePkg/MdeLibs.dsc.inc

Expand Down Expand Up @@ -88,6 +89,14 @@
PlatformBmcReadyLib|Platform/Ampere/JadePkg/Library/PlatformBmcReadyLib/PlatformBmcReadyLib.inf
IOExpanderLib|Platform/Ampere/JadePkg/Library/IOExpanderLib/IOExpanderLib.inf

#
# EFI Redfish drivers
#
!if $(REDFISH_ENABLE) == TRUE
RedfishContentCodingLib|RedfishPkg/Library/RedfishContentCodingLibNull/RedfishContentCodingLibNull.inf
RedfishPlatformHostInterfaceLib|RedfishPkg/Library/PlatformHostInterfaceBmcUsbNicLib/PlatformHostInterfaceBmcUsbNicLib.inf
!endif

[LibraryClasses.common.DXE_RUNTIME_DRIVER]
#
# RTC Library: Common RTC
Expand Down Expand Up @@ -268,3 +277,12 @@
# System Firmware Update
#
Silicon/Ampere/AmpereAltraPkg/Drivers/SystemFirmwareUpdateDxe/SystemFirmwareUpdateDxe.inf

#
# Redfish
#
!if $(REDFISH_ENABLE) == TRUE
MdeModulePkg/Bus/Usb/UsbNetwork/NetworkCommon/NetworkCommon.inf
MdeModulePkg/Bus/Usb/UsbNetwork/UsbCdcEcm/UsbCdcEcm.inf
!include RedfishPkg/Redfish.dsc.inc
!endif
9 changes: 9 additions & 0 deletions Platform/Ampere/JadePkg/Jade.fdf
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,15 @@ APRIORI DXE {
#
INF Silicon/Ampere/AmpereAltraPkg/Drivers/SystemFirmwareUpdateDxe/SystemFirmwareUpdateDxe.inf

#
# Redfish
#
!if $(REDFISH_ENABLE) == TRUE
INF MdeModulePkg/Bus/Usb/UsbNetwork/NetworkCommon/NetworkCommon.inf
INF MdeModulePkg/Bus/Usb/UsbNetwork/UsbCdcEcm/UsbCdcEcm.inf
!include RedfishPkg/Redfish.fdf.inc
!endif

[FV.SystemFirmwareDescriptor]
FvAlignment = 8
ERASE_POLARITY = 1
Expand Down
2 changes: 1 addition & 1 deletion Silicon/Ampere/AmpereAltraPkg/AmpereAltraPkg.dsc.inc
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@
# 0: Connect Minimal Devices
# 1: Connect Network Devices
# 2: Connect All Devices
gEfiMdeModulePkgTokenSpaceGuid.PcdBootDiscoveryPolicy|L"BootDiscoveryPolicy"|gBootDiscoveryPolicyMgrFormsetGuid|0x0|0
gEfiMdeModulePkgTokenSpaceGuid.PcdBootDiscoveryPolicy|L"BootDiscoveryPolicy"|gBootDiscoveryPolicyMgrFormsetGuid|0x0|1
!if $(TPM2_ENABLE) == TRUE
gEfiSecurityPkgTokenSpaceGuid.PcdTpm2AcpiTableRev|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x8|4|NV,BS
Expand Down

0 comments on commit 3585566

Please sign in to comment.