Browse Source

Platform/RaspberryPi: Enable Boot Discovery Policy.

Modify platform boot to check the value of BootDiscoveryPolicy variable
and use BootPolicyManager Protocol to connect devices specified by the
variable.

Signed-off-by: Grzegorz Bernacki <gjb@semihalf.com>
Reviewed-by: Sunny Wang <sunny.wang@arm.com>
Reviewed-by: Pete Batard <pete@akeo.ie>
Tested-by: Pete Batard <pete@akeo.ie>
Grzegorz Bernacki 2 years ago
parent
commit
6895992e55
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Platform/RaspberryPi/Library/PlatformBootManagerLib/PlatformBm.c

+ 5 - 0
Platform/RaspberryPi/Library/PlatformBootManagerLib/PlatformBm.c

@@ -724,6 +724,11 @@ PlatformBootManagerAfterConsole (
     DEBUG ((DEBUG_INFO, "Error applying Boot Discovery Policy:%r\n", Status));
   }
 
+  Status = BootDiscoveryPolicyHandler ();
+  if (EFI_ERROR(Status)) {
+    DEBUG ((DEBUG_INFO, "Error applying Boot Discovery Policy:%r\n", Status));
+  }
+
   Status = gBS->LocateProtocol (&gEsrtManagementProtocolGuid, NULL, (VOID**)&EsrtManagement);
   if (!EFI_ERROR (Status)) {
     EsrtManagement->SyncEsrtFmp ();