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@4005 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8
2007-09-30 03:05:10 +00:00
parent 19f97f7e86
commit 5bca971e54
12 changed files with 1516 additions and 535 deletions

View File

@@ -245,47 +245,43 @@ InitializeConSplitter(
//
// Install driver model protocol(s).
//
Status = EfiLibInstallAllDriverProtocols (
Status = EfiLibInstallDriverBindingComponentName2 (
ImageHandle,
SystemTable,
&gConSplitterConInDriverBinding,
ImageHandle,
&gConSplitterConInComponentName,
NULL,
NULL
&gConSplitterConInComponentName2
);
ASSERT_EFI_ERROR (Status);
Status = EfiLibInstallAllDriverProtocols (
Status = EfiLibInstallDriverBindingComponentName2 (
ImageHandle,
SystemTable,
&gConSplitterSimplePointerDriverBinding,
NULL,
&gConSplitterSimplePointerComponentName,
NULL,
NULL
&gConSplitterSimplePointerComponentName2
);
ASSERT_EFI_ERROR (Status);
Status = EfiLibInstallAllDriverProtocols (
Status = EfiLibInstallDriverBindingComponentName2 (
ImageHandle,
SystemTable,
&gConSplitterConOutDriverBinding,
NULL,
&gConSplitterConOutComponentName,
NULL,
NULL
&gConSplitterConOutComponentName2
);
ASSERT_EFI_ERROR (Status);
Status = EfiLibInstallAllDriverProtocols (
Status = EfiLibInstallDriverBindingComponentName2 (
ImageHandle,
SystemTable,
&gConSplitterStdErrDriverBinding,
NULL,
&gConSplitterStdErrComponentName,
NULL,
NULL
&gConSplitterStdErrComponentName2
);
ASSERT_EFI_ERROR (Status);