]> git.proxmox.com Git - mirror_qemu.git/commitdiff
stubs: add ramfb
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 15 Oct 2018 16:52:09 +0000 (10:52 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 15 Oct 2018 16:52:09 +0000 (10:52 -0600)
Needed to make sure code using ramfb (vfio) compiles properly even on
platforms without fw_cfg (and therefore no ramfb) support.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
stubs/Makefile.objs
stubs/ramfb.c [new file with mode: 0644]

index 53d3f32cb258190d243f888daa843404a248d3fd..5dd0aeeec69c5589c8d9a5ac53dd8066897ac621 100644 (file)
@@ -43,3 +43,4 @@ stub-obj-y += xen-common.o
 stub-obj-y += xen-hvm.o
 stub-obj-y += pci-host-piix.o
 stub-obj-y += ram-block.o
+stub-obj-y += ramfb.o
diff --git a/stubs/ramfb.c b/stubs/ramfb.c
new file mode 100644 (file)
index 0000000..48143f3
--- /dev/null
@@ -0,0 +1,13 @@
+#include "qemu/osdep.h"
+#include "qapi/error.h"
+#include "hw/display/ramfb.h"
+
+void ramfb_display_update(QemuConsole *con, RAMFBState *s)
+{
+}
+
+RAMFBState *ramfb_setup(Error **errp)
+{
+    error_setg(errp, "ramfb support not available");
+    return NULL;
+}