Skip to content

Commit d39e93d

Browse files
committed
vga: build qxl as module
First step in making spice support modular. Signed-off-by: Gerd Hoffmann <[email protected]> Message-id: [email protected]
1 parent aa9c857 commit d39e93d

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

hw/Makefile.objs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,6 @@ devices-dirs-y += smbios/
4343
endif
4444

4545
common-obj-y += $(devices-dirs-y)
46+
common-obj-m += display/
4647
common-obj-m += usb/
4748
obj-y += $(devices-dirs-y)

hw/display/Makefile.objs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ common-obj-$(CONFIG_ARTIST) += artist.o
4444

4545
obj-$(CONFIG_VGA) += vga.o
4646

47-
common-obj-$(CONFIG_QXL) += qxl.o qxl-logger.o qxl-render.o
47+
ifeq ($(CONFIG_QXL),y)
48+
common-obj-m += qxl.mo
49+
qxl.mo-objs = qxl.o qxl-logger.o qxl-render.o
50+
endif
4851

4952
obj-$(CONFIG_VIRTIO_GPU) += virtio-gpu-base.o virtio-gpu.o virtio-gpu-3d.o
5053
obj-$(CONFIG_VHOST_USER_GPU) += vhost-user-gpu.o

util/module.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ static struct {
264264
{ "ccid-card-passthru", "hw-", "usb-smartcard" },
265265
{ "ccid-card-emulated", "hw-", "usb-smartcard" },
266266
{ "usb-redir", "hw-", "usb-redirect" },
267+
{ "qxl-vga", "hw-", "display-qxl" },
268+
{ "qxl", "hw-", "display-qxl" },
267269
};
268270

269271
static bool module_loaded_qom_all;

0 commit comments

Comments
 (0)