summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-07-21 22:27:13 +0200
committerEduardo Habkost <ehabkost@redhat.com>2009-07-29 11:43:31 -0300
commit170f3c74102daa13fcc157e59b8f2a81b6a59764 (patch)
tree3114861f58797c416c57515bf1338c9b72c689e9
parentb9484c255a1252e56b1a8332a1c6572635cca393 (diff)
add option to disable usb bluez
Signed-off-by: Juan Quintela <quintela@redhat.com> Message-Id: <e4bd75dc78bb8c1a0a8beaed6083687f6576494d.1248207932.git.quintela@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Bugzilla: 512837 Message-Id: <7a1311844a4e4670d63677401e20a7230508d3d4.1248095798.git.quintela@redhat.com> Acked-by: "Daniel P. Berrange" <berrange@redhat.com> Acked-by: Markus Armbruster <armbru@redhat.com> RH-Upstream-status: pending Acked-by: Dor Laor <dlaor@redhat.com>
-rw-r--r--qemu/Makefile5
-rwxr-xr-xqemu/configure8
-rw-r--r--qemu/vl.c5
3 files changed, 16 insertions, 2 deletions
diff --git a/qemu/Makefile b/qemu/Makefile
index acf0914c..6f203660 100644
--- a/qemu/Makefile
+++ b/qemu/Makefile
@@ -97,7 +97,10 @@ ifdef CONFIG_USB_NET
OBJS+=usb-net.o
endif
OBJS+=sd.o ssi-sd.o
-OBJS+=bt.o bt-host.o bt-vhci.o bt-l2cap.o bt-sdp.o bt-hci.o bt-hid.o usb-bt.o
+OBJS+=bt.o bt-host.o bt-vhci.o bt-l2cap.o bt-sdp.o bt-hci.o bt-hid.o
+ifdef CONFIG_USB_BLUEZ
+OBJS+=usb-net.o
+endif
OBJS+=buffered_file.o migration.o migration-tcp.o net.o qemu-sockets.o
OBJS+=qemu-char.o aio.o net-checksum.o savevm.o cache-utils.o
diff --git a/qemu/configure b/qemu/configure
index 353a3e7c..a69a04bc 100755
--- a/qemu/configure
+++ b/qemu/configure
@@ -181,6 +181,7 @@ usb_msd="yes"
usb_wacom="yes"
usb_serial="yes"
usb_net="yes"
+usb_bluez="yes"
kvm="yes"
kvm_nested="no"
kvm_cap_pit="no"
@@ -431,6 +432,8 @@ for opt do
;;
--disable-usb-net) usb_net="no"
;;
+ --disable-usb-bluez) usb_bluez="no"
+ ;;
--disable-kvm) kvm="no"
;;
--enable-profiler) profiler="yes"
@@ -1326,6 +1329,7 @@ echo "USB storage $usb_msd"
echo "USB wacom $usb_wacom"
echo "USB serial $usb_serial"
echo "USB net $usb_net"
+echo "USB bluez $usb_bluez"
if test $sdl_too_old = "yes"; then
echo "-> Your SDL version is too old - please upgrade to have SDL support"
@@ -1641,6 +1645,10 @@ if test "$usb_net" = "yes" ; then
echo "CONFIG_USB_NET=yes" >> $config_mak
echo "#define CONFIG_USB_NET 1" >> $config_h
fi
+if test "$usb_bluez" = "yes" ; then
+ echo "CONFIG_USB_BLUEZ=yes" >> $config_mak
+ echo "#define CONFIG_USB_BLUEZ 1" >> $config_h
+fi
if test "$aio" = "yes" ; then
echo "#define CONFIG_AIO 1" >> $config_h
echo "CONFIG_AIO=yes" >> $config_mak
diff --git a/qemu/vl.c b/qemu/vl.c
index 6107066e..d3733f63 100644
--- a/qemu/vl.c
+++ b/qemu/vl.c
@@ -2832,10 +2832,13 @@ static int usb_device_add(const char *devname)
dev = usb_net_init(&nd_table[nic]);
} else
#endif
+#ifdef CONFIG_USB_BLUEZ
if (!strcmp(devname, "bt") || strstart(devname, "bt:", &p)) {
dev = usb_bt_init(devname[2] ? hci_init(p) :
bt_new_hci(qemu_find_bt_vlan(0)));
- } else {
+ } else
+#endif
+ {
return -1;
}
if (!dev)