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@4001 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -66,14 +66,13 @@ InitializeScsiDisk(
|
||||
//
|
||||
// Install driver model protocol(s).
|
||||
//
|
||||
Status = EfiLibInstallAllDriverProtocols (
|
||||
Status = EfiLibInstallDriverBindingComponentName2 (
|
||||
ImageHandle,
|
||||
SystemTable,
|
||||
&gScsiDiskDriverBinding,
|
||||
ImageHandle,
|
||||
&gScsiDiskComponentName,
|
||||
NULL,
|
||||
NULL
|
||||
&gScsiDiskComponentName2
|
||||
);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
|
||||
@@ -295,12 +294,21 @@ Returns:
|
||||
}
|
||||
|
||||
ScsiDiskDevice->ControllerNameTable = NULL;
|
||||
AddUnicodeString (
|
||||
AddUnicodeString2 (
|
||||
"eng",
|
||||
gScsiDiskComponentName.SupportedLanguages,
|
||||
&ScsiDiskDevice->ControllerNameTable,
|
||||
L"SCSI Disk Device"
|
||||
L"SCSI Disk Device",
|
||||
TRUE
|
||||
);
|
||||
AddUnicodeString2 (
|
||||
"en",
|
||||
gScsiDiskComponentName2.SupportedLanguages,
|
||||
&ScsiDiskDevice->ControllerNameTable,
|
||||
L"SCSI Disk Device",
|
||||
FALSE
|
||||
);
|
||||
|
||||
|
||||
return EFI_SUCCESS;
|
||||
|
||||
|
Reference in New Issue
Block a user