ArmVirtPkg: Add support for fw_cfg for EFI Shell

Signed-off-by: Luigi Leonardi <leonardi@redhat.com>
This commit is contained in:
Luigi Leonardi
2025-02-07 13:52:13 +01:00
committed by mergify[bot]
parent 7862dcb802
commit f79218f4dd

View File

@ -963,6 +963,7 @@ PlatformBootManagerAfterConsole (
{
RETURN_STATUS Status;
BOOLEAN Uninstall;
BOOLEAN ShellEnabled;
//
// Show the splash screen.
@ -988,6 +989,15 @@ PlatformBootManagerAfterConsole (
UninstallEfiMemoryAttributesProtocol ();
}
Status = QemuFwCfgParseBool (
"opt/org.tianocore/EFIShellSupport",
&ShellEnabled
);
if (RETURN_ERROR (Status)) {
ShellEnabled = TRUE;
}
//
// Process QEMU's -kernel command line option. The kernel booted this way
// will receive ACPI tables: in PlatformBootManagerBeforeConsole(), we
@ -1020,7 +1030,7 @@ PlatformBootManagerAfterConsole (
&gUefiShellFileGuid,
L"EFI Internal Shell",
LOAD_OPTION_ACTIVE,
TRUE
ShellEnabled
);
RemoveStaleFvFileOptions ();