summaryrefslogtreecommitdiffstats
path: root/SecurityPkg/HddPassword/HddPasswordDxe.inf
diff options
context:
space:
mode:
authorChu, Maggie <maggie.chu@intel.com>2019-06-10 18:19:27 +0800
committerEric Dong <eric.dong@intel.com>2019-06-12 09:12:05 +0800
commit9e2416ae2e1d26c6e6daa58353de519745bb322d (patch)
treefefdffaffb1180733ac733089d79972e3068ae5b /SecurityPkg/HddPassword/HddPasswordDxe.inf
parente5b4d825afc474a8cb916a2476dc0bb85fb32b2d (diff)
downloadedk2-9e2416ae2e1d26c6e6daa58353de519745bb322d.tar.gz
edk2-9e2416ae2e1d26c6e6daa58353de519745bb322d.tar.bz2
edk2-9e2416ae2e1d26c6e6daa58353de519745bb322d.zip
SecurityPkg/HddPassword: Add a PCD to skip Hdd password prompt
https://bugzilla.tianocore.org/show_bug.cgi?id=1876 Add a PCD for skipping Hdd password prompt. If device is in the locked status while attempting to skip password prompt, device will keep locked and system continue to boot. If device is in the unlocked status while attempting to skip password prompt, system will be forced shutdown. Signed-off-by: Maggie Chu <maggie.chu@intel.com> Cc: Chao Zhang <chao.b.zhang@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com>
Diffstat (limited to 'SecurityPkg/HddPassword/HddPasswordDxe.inf')
-rw-r--r--SecurityPkg/HddPassword/HddPasswordDxe.inf4
1 files changed, 4 insertions, 0 deletions
diff --git a/SecurityPkg/HddPassword/HddPasswordDxe.inf b/SecurityPkg/HddPassword/HddPasswordDxe.inf
index f7550079ed..06e8755ffc 100644
--- a/SecurityPkg/HddPassword/HddPasswordDxe.inf
+++ b/SecurityPkg/HddPassword/HddPasswordDxe.inf
@@ -34,6 +34,7 @@
MdePkg/MdePkg.dec
MdeModulePkg/MdeModulePkg.dec
CryptoPkg/CryptoPkg.dec
+ SecurityPkg/SecurityPkg.dec
[LibraryClasses]
BaseLib
@@ -64,6 +65,9 @@
gEfiPciIoProtocolGuid ## CONSUMES
gEdkiiVariableLockProtocolGuid ## CONSUMES
+[Pcd]
+ gEfiSecurityPkgTokenSpaceGuid.PcdSkipHddPasswordPrompt ## CONSUMES
+
[Depex]
gEfiVariableWriteArchProtocolGuid