public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH 1/2] MdePkg/MdePkg.dec: New PCD PcdConsoleRedirectionSupport has defined
@ 2020-01-24  5:34 Veerabaghu
  2020-01-24  5:36 ` [PATCH 2/2] MdeModulePkg/Universal: Added control on disable / enable Console redirection Veerabaghu
  0 siblings, 1 reply; 2+ messages in thread
From: Veerabaghu @ 2020-01-24  5:34 UTC (permalink / raw)
  To: devel; +Cc: Contributor Veerabaghu

REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2399

There is no support for disabling Console Redirection.
So, defined new PCD PcdConsoleRedirectionSupport
to disable / enable Console redirection.

Change-Id: Ie5e42ddd7c218bc1a253a4c97030c316bc7abb71
Signed-off-by: Contributor Veerabaghu<jayanthi.nallax.veerabaghu@intel.com>
---
 MdePkg/MdePkg.dec | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec
index d022cc5e3e..f54ea4133a 100644
--- a/MdePkg/MdePkg.dec
+++ b/MdePkg/MdePkg.dec
@@ -2297,5 +2297,10 @@
   # @Prompt Boot Timeout (s)
   gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0xffff|UINT16|0x0000002c
 
+[PcdsDynamic,PcdsDynamicEx]  
+## Specify the Console Redirection support.
+# @Prompt Console Redirection of Setup page
+gEfiMdePkgTokenSpaceGuid.PcdConsoleRedirectionSupport|TRUE|BOOLEAN|0x0000002f
+
 [UserExtensions.TianoCore."ExtraFiles"]
   MdePkgExtra.uni
-- 
2.21.0.windows.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH 2/2] MdeModulePkg/Universal: Added control on disable / enable Console redirection
  2020-01-24  5:34 [PATCH 1/2] MdePkg/MdePkg.dec: New PCD PcdConsoleRedirectionSupport has defined Veerabaghu
@ 2020-01-24  5:36 ` Veerabaghu
  0 siblings, 0 replies; 2+ messages in thread
From: Veerabaghu @ 2020-01-24  5:36 UTC (permalink / raw)
  To: devel; +Cc: Contributor Veerabaghu

REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2399

In TerminalDriverBindingStart funtion of Terminal.c file
added condition which depends on setup variable ConsoleRedirection

Change-Id: Ib9b9ce2271b1dab8a1c87a66bd30b5a7c1611cf0
Signed-off-by: Contributor Veerabaghu <jayanthi.nallax.veerabaghu@intel.com>
---
 MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c      | 5 ++++-
 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf | 1 +
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c
index a98b690c8b..74b77eb771 100644
--- a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c
+++ b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c
@@ -478,7 +478,10 @@ TerminalDriverBindingStart (
   EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL     *SimpleTextOutput;
   EFI_SIMPLE_TEXT_INPUT_PROTOCOL      *SimpleTextInput;
   EFI_UNICODE_STRING_TABLE            *ControllerNameTable;
-
+  
+  if(!PcdGetBool(PcdConsoleRedirectionSupport)) {
+    return EFI_DEVICE_ERROR;
+  }
   //
   // Get the Device Path Protocol to build the device path of the child device
   //
diff --git a/MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf b/MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
index b2a8aeba85..2ba688138f 100644
--- a/MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
+++ b/MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
@@ -87,6 +87,7 @@
 [Pcd]
   gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType           ## SOMETIMES_CONSUMES
   gEfiMdeModulePkgTokenSpaceGuid.PcdErrorCodeSetVariable    ## CONSUMES
+gEfiMdePkgTokenSpaceGuid.PcdConsoleRedirectionSupport
 
 # [Event]
 # # Relative timer event set by UnicodeToEfiKey(), used to be one 2 seconds input timeout.
-- 
2.21.0.windows.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-01-24  5:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-24  5:34 [PATCH 1/2] MdePkg/MdePkg.dec: New PCD PcdConsoleRedirectionSupport has defined Veerabaghu
2020-01-24  5:36 ` [PATCH 2/2] MdeModulePkg/Universal: Added control on disable / enable Console redirection Veerabaghu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox