Skip to content

Commit aa9c857

Browse files
committed
usb: build usb-redir as module
Drops libusbredirparser.so dependency from core qemu. Signed-off-by: Gerd Hoffmann <[email protected]> Message-id: [email protected]
1 parent 8887312 commit aa9c857

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

hw/usb/Makefile.objs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,12 @@ endif
4343

4444
# usb redirection
4545
ifeq ($(CONFIG_USB),y)
46-
common-obj-$(CONFIG_USB_REDIR) += redirect.o quirks.o
47-
redirect.o-cflags = $(USB_REDIR_CFLAGS)
48-
redirect.o-libs = $(USB_REDIR_LIBS)
46+
ifeq ($(CONFIG_USB_REDIR),y)
47+
common-obj-m += redirect.mo
48+
redirect.mo-objs = redirect.o quirks.o
49+
redirect.mo-cflags = $(USB_REDIR_CFLAGS)
50+
redirect.mo-libs = $(USB_REDIR_LIBS)
51+
endif
4952
endif
5053

5154
# usb pass-through

util/module.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ static struct {
263263
} const qom_modules[] = {
264264
{ "ccid-card-passthru", "hw-", "usb-smartcard" },
265265
{ "ccid-card-emulated", "hw-", "usb-smartcard" },
266+
{ "usb-redir", "hw-", "usb-redirect" },
266267
};
267268

268269
static bool module_loaded_qom_all;

0 commit comments

Comments
 (0)