From 8d4eec6d97db143d9568631102c2027ed594eadb Mon Sep 17 00:00:00 2001 From: Qiu Shumin Date: Sun, 21 Feb 2016 15:52:53 +0800 Subject: 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 Cc: Ruiyu Ni Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Liming Gao Reviewed-by: Ruiyu Ni --- ShellPkg/Application/Shell/Shell.inf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ShellPkg/Application/Shell/Shell.inf') 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.
-# Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.
+# Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.
# # 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 -- cgit v1.2.3