bhyve: Conditionally compile framebuffer-related code

The arm64 port does not implement VGA, so move the device model sources.
Compile framebuffer code only on amd64 for now, but do not move the
sources, as we ought to be able to add support later.

No functional change intended.

Reviewed by:	corvink, jhb
MFC after:	1 week
Sponsored by:	Innovate UK
Differential Revision:	https://reviews.freebsd.org/D40740
This commit is contained in:
Mark Johnston 2023-10-04 12:25:47 -04:00
parent 55c13f6e7a
commit 61429b49d2
5 changed files with 6 additions and 5 deletions

View file

@ -37,7 +37,6 @@ SRCS= \
net_backends.c \
net_utils.c \
pci_emul.c \
pci_fbuf.c \
pci_hostbridge.c \
pci_nvme.c \
pci_passthru.c \
@ -50,7 +49,6 @@ SRCS= \
pci_virtio_scsi.c \
qemu_fwcfg.c \
qemu_loader.c \
rfb.c \
smbiostbl.c \
sockstream.c \
tpm_device.c \
@ -60,7 +58,6 @@ SRCS= \
uart_emul.c \
usb_emul.c \
usb_mouse.c \
vga.c \
virtio.c \
vmexit.c \
vmgenc.c

View file

@ -7,6 +7,7 @@ SRCS+= \
mptbl.c \
pci_ahci.c \
pci_e82545.c \
pci_fbuf.c \
pci_gvt-d.c \
pci_hda.c \
pci_irq.c \
@ -18,9 +19,11 @@ SRCS+= \
post.c \
ps2kbd.c \
ps2mouse.c \
rfb.c \
rtc.c \
spinup_ap.c \
task_switch.c \
vga.c \
xmsr.c
.PATH: ${BHYVE_SYSDIR}/sys/amd64/vmm

View file

@ -46,10 +46,11 @@
#include "config.h"
#include "debug.h"
#include "console.h"
#include "inout.h"
#include "pci_emul.h"
#include "rfb.h"
#include "vga.h"
#ifdef __amd64__
#include "amd64/vga.h"
#endif
/*
* bhyve Framebuffer device emulation.