mirror of https://github.com/acidanthera/audk.git
EmulatorPkg: Redfish related changes on EmulatorPkg
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3102 - REDFISH_ENABLE definition to control EFI Redfish support - Add Redfish platform host interface library to EmulatorPkg build. - Set RestExServiceDevicePath PCD value. - Add Redfish host interface config EFI application to EmulatorPkg build. - Use Redfish DSC/FDF include file. Signed-off-by: Abner Chang <abner.chang@hpe.com> Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Andrew Fish <afish@apple.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Nickle Wang <nickle.wang@hpe.com> Cc: Peter O'Hanley <peter.ohanley@hpe.com> Acked-by: Ray Ni <ray.ni@intel.com>
This commit is contained in:
parent
f94487284b
commit
484e869dfd
|
@ -35,6 +35,11 @@
|
||||||
DEFINE NETWORK_ISCSI_ENABLE = FALSE
|
DEFINE NETWORK_ISCSI_ENABLE = FALSE
|
||||||
DEFINE SECURE_BOOT_ENABLE = FALSE
|
DEFINE SECURE_BOOT_ENABLE = FALSE
|
||||||
|
|
||||||
|
#
|
||||||
|
# Redfish definition
|
||||||
|
#
|
||||||
|
DEFINE REDFISH_ENABLE = FALSE
|
||||||
|
|
||||||
[SkuIds]
|
[SkuIds]
|
||||||
0|DEFAULT
|
0|DEFAULT
|
||||||
|
|
||||||
|
@ -96,7 +101,9 @@
|
||||||
#
|
#
|
||||||
PlatformBootManagerLib|EmulatorPkg/Library/PlatformBmLib/PlatformBmLib.inf
|
PlatformBootManagerLib|EmulatorPkg/Library/PlatformBmLib/PlatformBmLib.inf
|
||||||
KeyMapLib|EmulatorPkg/Library/KeyMapLibNull/KeyMapLibNull.inf
|
KeyMapLib|EmulatorPkg/Library/KeyMapLibNull/KeyMapLibNull.inf
|
||||||
|
!if $(REDFISH_ENABLE) == TRUE
|
||||||
|
RedfishPlatformHostInterfaceLib|EmulatorPkg/Library/RedfishPlatformHostInterfaceLib/RedfishPlatformHostInterfaceLib.inf
|
||||||
|
!endif
|
||||||
#
|
#
|
||||||
# Misc
|
# Misc
|
||||||
#
|
#
|
||||||
|
@ -252,6 +259,18 @@
|
||||||
# 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM
|
# 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM
|
||||||
gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|1
|
gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|1
|
||||||
|
|
||||||
|
!if $(REDFISH_ENABLE) == TRUE
|
||||||
|
gEfiRedfishPkgTokenSpaceGuid.PcdRedfishRestExServiceDevicePath.DevicePathMatchMode|DEVICE_PATH_MATCH_MAC_NODE
|
||||||
|
gEfiRedfishPkgTokenSpaceGuid.PcdRedfishRestExServiceDevicePath.DevicePathNum|1
|
||||||
|
#
|
||||||
|
# Below is the MAC address of network adapter on EDK2 Emulator platform.
|
||||||
|
# You can use ifconfig under EFI shell to get the MAC address of network adapter on EDK2 Emulator platform.
|
||||||
|
#
|
||||||
|
gEfiRedfishPkgTokenSpaceGuid.PcdRedfishRestExServiceDevicePath.DevicePath|{DEVICE_PATH("MAC(000000000000,0x1)")}
|
||||||
|
gEfiRedfishPkgTokenSpaceGuid.PcdRedfishRestExServiceAccessModeInBand|False
|
||||||
|
gEfiRedfishPkgTokenSpaceGuid.PcdRedfishDiscoverAccessModeInBand|False
|
||||||
|
!endif
|
||||||
|
|
||||||
[PcdsDynamicDefault.common.DEFAULT]
|
[PcdsDynamicDefault.common.DEFAULT]
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
|
||||||
|
@ -450,6 +469,11 @@
|
||||||
|
|
||||||
!include NetworkPkg/Network.dsc.inc
|
!include NetworkPkg/Network.dsc.inc
|
||||||
|
|
||||||
|
!if $(REDFISH_ENABLE) == TRUE
|
||||||
|
EmulatorPkg/Application/RedfishPlatformConfig/RedfishPlatformConfig.inf
|
||||||
|
!endif
|
||||||
|
!include RedfishPkg/Redfish.dsc.inc
|
||||||
|
|
||||||
[BuildOptions]
|
[BuildOptions]
|
||||||
#
|
#
|
||||||
# Disable deprecated APIs.
|
# Disable deprecated APIs.
|
||||||
|
|
|
@ -208,6 +208,11 @@ INF EmulatorPkg/EmuSnpDxe/EmuSnpDxe.inf
|
||||||
!endif
|
!endif
|
||||||
!include NetworkPkg/Network.fdf.inc
|
!include NetworkPkg/Network.fdf.inc
|
||||||
|
|
||||||
|
#
|
||||||
|
# EFI Redfish drivers
|
||||||
|
#
|
||||||
|
!include RedfishPkg/Redfish.fdf.inc
|
||||||
|
|
||||||
INF FatPkg/EnhancedFatDxe/Fat.inf
|
INF FatPkg/EnhancedFatDxe/Fat.inf
|
||||||
|
|
||||||
!if "XCODE5" not in $(TOOL_CHAIN_TAG)
|
!if "XCODE5" not in $(TOOL_CHAIN_TAG)
|
||||||
|
|
Loading…
Reference in New Issue