diff options
author | Qiu Shumin <shumin.qiu@intel.com> | 2016-02-21 15:52:53 +0800 |
---|---|---|
committer | Qiu Shumin <shumin.qiu@intel.com> | 2016-02-24 15:11:14 +0800 |
commit | 8d4eec6d97db143d9568631102c2027ed594eadb (patch) | |
tree | 2ee96a7b232ffbab84b4cc87d0ccfc960ea02788 /ShellPkg/Application/Shell/Shell.inf | |
parent | 2a09778d6f0c0a2ff67d9b2414dd9464306bd3aa (diff) | |
download | edk2-platforms-8d4eec6d97db143d9568631102c2027ed594eadb.tar.xz |
ShellPkg: Support finding help message embedded in resource section.
UEFI Shell scandalizes the help message in spec level so that a standalone
UEFI shell application can never get "-?" switch, instead the Shell core
(interpreter) detects the "-?" and finds .MAN file for that shell
application in certain spec defined paths, then show the help extracted
from that .MAN file.
But it means distributing a UEFI shell application not only means
distributing a .EFI file but also distributing a .MAN file. If the text
formatted .MAN file is corrupted (edited by user by mistake), or is
missing (deleted by user by mistake), no help will be shown to user.
So this patch enhance the Shell to make it support finding help message
imbedded in resource section of application image.
Cc: Jaben Carsey <jaben.carsey@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Diffstat (limited to 'ShellPkg/Application/Shell/Shell.inf')
-rw-r--r-- | ShellPkg/Application/Shell/Shell.inf | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ShellPkg/Application/Shell/Shell.inf b/ShellPkg/Application/Shell/Shell.inf index 253bfdbb22..1b8b9ee702 100644 --- a/ShellPkg/Application/Shell/Shell.inf +++ b/ShellPkg/Application/Shell/Shell.inf @@ -2,7 +2,7 @@ # This is the shell application
#
# (C) Copyright 2013 Hewlett-Packard Development Company, L.P.<BR>
-# Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.<BR>
+# Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
@@ -70,6 +70,7 @@ HiiLib
SortLib
HandleParsingLib
+ UefiHiiServicesLib
[Guids]
gShellVariableGuid ## CONSUMES ## GUID
@@ -93,6 +94,7 @@ gEfiComponentName2ProtocolGuid ## CONSUMES
gEfiUnicodeCollation2ProtocolGuid ## CONSUMES
gEfiDevicePathProtocolGuid ## CONSUMES
+ gEfiHiiPackageListProtocolGuid ## SOMETIMES_PRODUCES
[Pcd]
gEfiShellPkgTokenSpaceGuid.PcdShellSupportLevel ## CONSUMES
|