public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH] ShellPkg/ShellPkg.dec: Change comments for PcdShellLibAutoInitialize
@ 2017-11-29  8:22 Ruiyu Ni
  2017-12-01 17:00 ` Carsey, Jaben
  0 siblings, 1 reply; 3+ messages in thread
From: Ruiyu Ni @ 2017-11-29  8:22 UTC (permalink / raw)
  To: edk2-devel; +Cc: Jaben Carsey

When Dynamic command drivers links to ShellLib, the ShellLib
constructor shouldn't be called because the Shell and ShellParameters
protocols don't exist when the driver starts.
So it's required to set PcdShellLibAutoInitialize to FALSE for
dynamic command drivers.
Update the comments in DEC file to describe such requirement
for this PCD.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Jaben Carsey <jaben.carsey@intel.com>
---
 ShellPkg/ShellPkg.dec | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ShellPkg/ShellPkg.dec b/ShellPkg/ShellPkg.dec
index 5859c49033..48d50b87b3 100644
--- a/ShellPkg/ShellPkg.dec
+++ b/ShellPkg/ShellPkg.dec
@@ -81,6 +81,7 @@ [PcdsFeatureFlag]
 [PcdsFixedAtBuild]
   ## This flag is used to control initialization of the shell library
   #  This should be FALSE for compiling the shell application itself only.
+  #  This should be FALSE for compiling the dynamic command drivers.
   gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|TRUE|BOOLEAN|0x00000005
 
   ## This is the max buffer for ShellLib and internal Shell printings.
-- 
2.15.0.gvfs.1.preview.4



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

end of thread, other threads:[~2017-12-02  9:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-29  8:22 [PATCH] ShellPkg/ShellPkg.dec: Change comments for PcdShellLibAutoInitialize Ruiyu Ni
2017-12-01 17:00 ` Carsey, Jaben
2017-12-02  9:08   ` Ni, Ruiyu

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