Update to support to produce Component Name and & Component Name 2 protocol based on Feature flag PcdComponentNameDisable & PcdComponentName2Disable.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3993 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8
2007-09-29 11:27:09 +00:00
parent 04369cd8fc
commit 6c28f1182f
3 changed files with 269 additions and 102 deletions

View File

@@ -83,14 +83,13 @@ InitializeWinNtSimpleFileSystem(
//
// Install driver model protocol(s).
//
Status = EfiLibInstallAllDriverProtocols (
Status = EfiLibInstallDriverBindingComponentName2 (
ImageHandle,
SystemTable,
&gWinNtSimpleFileSystemDriverBinding,
ImageHandle,
&gWinNtSimpleFileSystemComponentName,
NULL,
NULL
&gWinNtSimpleFileSystemComponentName2
);
ASSERT_EFI_ERROR (Status);
@@ -373,12 +372,21 @@ Returns:
Private->ControllerNameTable = NULL;
AddUnicodeString (
AddUnicodeString2 (
"eng",
gWinNtSimpleFileSystemComponentName.SupportedLanguages,
&Private->ControllerNameTable,
WinNtIo->EnvString
WinNtIo->EnvString,
TRUE
);
AddUnicodeString2 (
"en",
gWinNtSimpleFileSystemComponentName2.SupportedLanguages,
&Private->ControllerNameTable,
WinNtIo->EnvString,
FALSE
);
Status = gBS->InstallMultipleProtocolInterfaces (
&ControllerHandle,