summaryrefslogtreecommitdiffstats
path: root/ShellPkg/ShellPkg.dsc
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2017-11-28 19:43:16 +0800
committerRuiyu Ni <ruiyu.ni@intel.com>2017-11-29 10:32:02 +0800
commitff5a4bcff3e2afe4a94e62d457ccfc5361590067 (patch)
tree413eca9a95863006bd5a60b5f704c8c1f889cefe /ShellPkg/ShellPkg.dsc
parent68b07ebae5d7c4124ff7b2a8d35e2f8b6cda18b8 (diff)
downloadedk2-ff5a4bcff3e2afe4a94e62d457ccfc5361590067.tar.gz
edk2-ff5a4bcff3e2afe4a94e62d457ccfc5361590067.tar.bz2
edk2-ff5a4bcff3e2afe4a94e62d457ccfc5361590067.zip
ShellPkg/DynamicCommand: Fix bug that cannot start in boot
When dynamic command drivers are built into FV and start during boot, they fails. Because Shell protocol doesn't exist during boot. The patch sets Shell protocol and also set PcdShellLibAutoInitialize to FALSE to ensure that 1. Shell protocol check doesn't happen in driver's entry point. 2. Driver can get the Shell protocol in DynamicCommand.Handler(). Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Diffstat (limited to 'ShellPkg/ShellPkg.dsc')
-rw-r--r--ShellPkg/ShellPkg.dsc7
1 files changed, 6 insertions, 1 deletions
diff --git a/ShellPkg/ShellPkg.dsc b/ShellPkg/ShellPkg.dsc
index 65e8959455..86382139a5 100644
--- a/ShellPkg/ShellPkg.dsc
+++ b/ShellPkg/ShellPkg.dsc
@@ -120,9 +120,14 @@
!endif #$(NO_SHELL_PROFILES)
}
- ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf
+ ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
+ <PcdsFixedAtBuild>
+ gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
+ }
ShellPkg/DynamicCommand/TftpDynamicCommand/TftpApp.inf
ShellPkg/DynamicCommand/DpDynamicCommand/DpDynamicCommand.inf {
+ <PcdsFixedAtBuild>
+ gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
<LibraryClasses>
PerformanceLib|MdeModulePkg/Library/DxeSmmPerformanceLib/DxeSmmPerformanceLib.inf
}