summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/QemuVideoDxe
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2015-02-23 16:02:29 +0000
committerlersek <lersek@Edk2>2015-02-23 16:02:29 +0000
commit84a75f70e9037d335e7bbc87011fd694146c6509 (patch)
tree6e4b6a3d921f8d798526431cf369529642186677 /OvmfPkg/QemuVideoDxe
parentcef89a58ee126ea3c46be6fc60685c7c2e6eae33 (diff)
downloadedk2-84a75f70e9037d335e7bbc87011fd694146c6509.tar.gz
edk2-84a75f70e9037d335e7bbc87011fd694146c6509.tar.bz2
edk2-84a75f70e9037d335e7bbc87011fd694146c6509.zip
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
Diffstat (limited to 'OvmfPkg/QemuVideoDxe')
-rw-r--r--OvmfPkg/QemuVideoDxe/Driver.c2
-rw-r--r--OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf4
2 files changed, 5 insertions, 1 deletions
diff --git a/OvmfPkg/QemuVideoDxe/Driver.c b/OvmfPkg/QemuVideoDxe/Driver.c
index 17bd4cc2cc..c74d1a2ab8 100644
--- a/OvmfPkg/QemuVideoDxe/Driver.c
+++ b/OvmfPkg/QemuVideoDxe/Driver.c
@@ -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;
diff --git a/OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf b/OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
index 5180b27600..ce1ff93d83 100644
--- a/OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
+++ b/OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
@@ -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]