[efi] Allow for optional protocols

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2014-05-19 20:23:31 +01:00
parent f4e069bf2e
commit 95cff6a4d8
2 changed files with 20 additions and 2 deletions

View File

@@ -187,8 +187,9 @@ EFI_STATUS efi_init ( EFI_HANDLE image_handle,
} else {
DBGC ( systab, "EFI does not provide protocol %s\n",
efi_guid_ntoa ( &prot->guid ) );
/* All protocols are required */
return efirc;
/* Fail if protocol is required */
if ( prot->required )
return efirc;
}
}