From 82571fb5d1c9093fd2387fc4a35a9f6fe5d541f4 Mon Sep 17 00:00:00 2001 From: jcarsey Date: Mon, 16 May 2011 22:12:20 +0000 Subject: add support to easily remove profiles and shell levels. the libraries will not do anything (but no longer fail), if the PCDs are changed to remove their functionality. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11666 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ShellPkg/Library/UefiShellLevel2CommandsLib') diff --git a/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.c b/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.c index e54d5f3ede..fed233c33a 100644 --- a/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.c +++ b/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.c @@ -77,7 +77,7 @@ ShellLevel2CommandsLibConstructor ( // if shell level is less than 2 do nothing // if (PcdGet8(PcdShellSupportLevel) < 2) { - return (EFI_UNSUPPORTED); + return (EFI_SUCCESS); } gShellLevel2HiiHandle = HiiAddPackages (&gShellLevel2HiiGuid, gImageHandle, UefiShellLevel2CommandsLibStrings, NULL); -- cgit v1.2.3