]> git.proxmox.com Git - mirror_edk2.git/commit
ShellPkg: Support finding help message embedded in resource section.
authorQiu Shumin <shumin.qiu@intel.com>
Sun, 21 Feb 2016 07:52:53 +0000 (15:52 +0800)
committerQiu Shumin <shumin.qiu@intel.com>
Wed, 24 Feb 2016 07:11:14 +0000 (15:11 +0800)
commit8d4eec6d97db143d9568631102c2027ed594eadb
tree2ee96a7b232ffbab84b4cc87d0ccfc960ea02788
parent2a09778d6f0c0a2ff67d9b2414dd9464306bd3aa
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>
ShellPkg/Application/Shell/Shell.h
ShellPkg/Application/Shell/Shell.inf
ShellPkg/Application/Shell/ShellManParser.c