[edk2-devel] [PATCH] edk2-staging/EmulatorPkg: Enable network when REDFISH_ENABLE is TRUE

Abner Chang posted 1 patch 2 years, 5 months ago
Failed in applying to current master (apply log)
EmulatorPkg/EmulatorPkg.dsc | 10 ++++++++++
1 file changed, 10 insertions(+)
[edk2-devel] [PATCH] edk2-staging/EmulatorPkg: Enable network when REDFISH_ENABLE is TRUE
Posted by Abner Chang 2 years, 5 months ago
Enable edk2 network settings when edk2 Redfish foundation is enabled

Signed-off-by: Nickle Wang <nickle.wang@hpe.com>
Cc: Abner Chang <abner.chang@hpe.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Andrew Fish <afish@apple.com>
Cc: Ray Ni <ray.ni@intel.com>
---
 EmulatorPkg/EmulatorPkg.dsc | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/EmulatorPkg/EmulatorPkg.dsc b/EmulatorPkg/EmulatorPkg.dsc
index ba11d249ec8..68371c96860 100644
--- a/EmulatorPkg/EmulatorPkg.dsc
+++ b/EmulatorPkg/EmulatorPkg.dsc
@@ -42,6 +42,16 @@
   #
   DEFINE REDFISH_ENABLE = TRUE
 
+!if $(REDFISH_ENABLE) == TRUE
+  #
+  # Allow HTTP connection for Redfish profile simulator.
+  #
+  DEFINE NETWORK_SNP_ENABLE             = TRUE
+  DEFINE NETWORK_IP6_ENABLE             = TRUE
+  DEFINE NETWORK_HTTP_ENABLE            = TRUE
+  DEFINE NETWORK_ALLOW_HTTP_CONNECTIONS = TRUE
+!endif
+
 [SkuIds]
   0|DEFAULT
 
-- 
2.21.0.windows.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#82921): https://edk2.groups.io/g/devel/message/82921
Mute This Topic: https://groups.io/mt/86672060/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-