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
This commit is contained in:
jcarsey
2011-05-16 22:12:20 +00:00
parent 4880c2c94d
commit 82571fb5d1
8 changed files with 18 additions and 33 deletions

View File

@ -58,7 +58,7 @@ ShellNetwork1CommandsLibConstructor (
// check our bit of the profiles mask
//
if ((PcdGet8(PcdShellProfileMask) & BIT3) == 0) {
return (EFI_UNSUPPORTED);
return (EFI_SUCCESS);
}
gShellNetwork1HiiHandle = HiiAddPackages (&gShellNetwork1HiiGuid, gImageHandle, UefiShellNetwork1CommandsLibStrings, NULL);