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@3987 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8
2007-09-29 11:17:24 +00:00
parent ced44f7370
commit 057d744eee
3 changed files with 481 additions and 324 deletions

View File

@@ -1018,15 +1018,14 @@ Returns:
// Install the Driver Protocols
//
Status = EfiLibInstallAllDriverProtocols (
ImageHandle,
SystemTable,
&gSnpNt32DriverBinding,
ImageHandle,
&gSnpNt32DriverComponentName,
NULL,
NULL
);
Status = EfiLibInstallDriverBindingComponentName2 (
ImageHandle,
SystemTable,
&gSnpNt32DriverBinding,
ImageHandle,
&gSnpNt32DriverComponentName,
&gSnpNt32DriverComponentName2
);
if (EFI_ERROR (Status)) {
return Status;
}