OvmfPkg/QemuVideoDxe: enable ARM builds

The only feature not portable to ArmVirtualizationQemu is the VBE shim;
make that dependent on Ia32 / X64.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Acked-by: Olivier Martin <Olivier.martin@arm.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16890 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Laszlo Ersek 2015-02-23 16:02:29 +00:00 committed by lersek
parent cef89a58ee
commit 84a75f70e9
2 changed files with 5 additions and 1 deletions

View File

@ -405,10 +405,12 @@ QemuVideoControllerDriverStart (
goto UninstallGop;
}
#if defined MDE_CPU_IA32 || defined MDE_CPU_X64
if (Private->Variant == QEMU_VIDEO_BOCHS_MMIO ||
Private->Variant == QEMU_VIDEO_BOCHS) {
InstallVbeShim (Card->Name, Private->GraphicsOutput.Mode->FrameBufferBase);
}
#endif
gBS->RestoreTPL (OldTpl);
return EFI_SUCCESS;

View File

@ -26,7 +26,7 @@
#
# The following information is for reference only and not required by the build tools.
#
# VALID_ARCHITECTURES = IA32 X64 IPF EBC
# VALID_ARCHITECTURES = IA32 X64 IPF EBC ARM AARCH64
#
# DRIVER_BINDING = gQemuVideoDriverBinding
# COMPONENT_NAME = gQemuVideoComponentName
@ -38,6 +38,8 @@
DriverSupportedEfiVersion.c
Gop.c
Initialize.c
[Sources.Ia32, Sources.X64]
VbeShim.c
[Packages]