9ae3a8
From d930ba960a1abaf8b76e507707a7fe081a376741 Mon Sep 17 00:00:00 2001
9ae3a8
From: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
Date: Mon, 17 Dec 2018 11:04:15 +0100
9ae3a8
Subject: [PATCH 2/2] Do not build bluetooth support
9ae3a8
9ae3a8
RH-Author: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
Message-id: <1545044655-7801-1-git-send-email-mrezanin@redhat.com>
9ae3a8
Patchwork-id: 83537
9ae3a8
O-Subject: [RHEL-7.7 qemu-kvm PATCH] Do not build bluetooth support
9ae3a8
Bugzilla: 1654627
9ae3a8
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
9ae3a8
RH-Acked-by: Danilo de Paula <ddepaula@redhat.com>
9ae3a8
RH-Acked-by: Markus Armbruster <armbru@redhat.com>
9ae3a8
9ae3a8
From: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
9ae3a8
We do not support bt devices however some bt related code is built in.
9ae3a8
As this code is deprecated upstream disabling build of this code downstream.
9ae3a8
9ae3a8
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
---
9ae3a8
 Makefile.objs       | 2 +-
9ae3a8
 hw/bt/Makefile.objs | 4 ++--
9ae3a8
 qemu-options.hx     | 2 ++
9ae3a8
 vl.c                | 6 ++++++
9ae3a8
 4 files changed, 11 insertions(+), 3 deletions(-)
9ae3a8
9ae3a8
diff --git a/Makefile.objs b/Makefile.objs
9ae3a8
index 74f722e44e..1712ee6133 100644
9ae3a8
--- a/Makefile.objs
9ae3a8
+++ b/Makefile.objs
9ae3a8
@@ -64,7 +64,7 @@ common-obj-y += audio/
9ae3a8
 common-obj-y += hw/
9ae3a8
 
9ae3a8
 common-obj-y += ui/
9ae3a8
-common-obj-y += bt-host.o bt-vhci.o
9ae3a8
+#common-obj-y += bt-host.o bt-vhci.o
9ae3a8
 
9ae3a8
 common-obj-y += dma-helpers.o
9ae3a8
 common-obj-y += vl.o
9ae3a8
diff --git a/hw/bt/Makefile.objs b/hw/bt/Makefile.objs
9ae3a8
index 867a7d2e8a..e678e9ee3c 100644
9ae3a8
--- a/hw/bt/Makefile.objs
9ae3a8
+++ b/hw/bt/Makefile.objs
9ae3a8
@@ -1,3 +1,3 @@
9ae3a8
-common-obj-y += core.o l2cap.o sdp.o hci.o hid.o
9ae3a8
-common-obj-y += hci-csr.o
9ae3a8
+#common-obj-y += core.o l2cap.o sdp.o hci.o hid.o
9ae3a8
+#common-obj-y += hci-csr.o
9ae3a8
 
9ae3a8
diff --git a/qemu-options.hx b/qemu-options.hx
9ae3a8
index 24ffab6a50..bcf1b8f755 100644
9ae3a8
--- a/qemu-options.hx
9ae3a8
+++ b/qemu-options.hx
9ae3a8
@@ -2157,6 +2157,7 @@ STEXI
9ae3a8
 @end table
9ae3a8
 ETEXI
9ae3a8
 
9ae3a8
+#if 0
9ae3a8
 DEFHEADING(Bluetooth(R) options:)
9ae3a8
 STEXI
9ae3a8
 @table @option
9ae3a8
@@ -2231,6 +2232,7 @@ STEXI
9ae3a8
 @end table
9ae3a8
 ETEXI
9ae3a8
 DEFHEADING()
9ae3a8
+#endif
9ae3a8
 
9ae3a8
 #ifdef CONFIG_TPM
9ae3a8
 DEFHEADING(TPM device options:)
9ae3a8
diff --git a/vl.c b/vl.c
9ae3a8
index 7c34b7c64f..5c5cdbe88b 100644
9ae3a8
--- a/vl.c
9ae3a8
+++ b/vl.c
9ae3a8
@@ -840,6 +840,7 @@ static void configure_rtc(QemuOpts *opts)
9ae3a8
     }
9ae3a8
 }
9ae3a8
 
9ae3a8
+#if 0 // Disabled for Red Hat Enterprise Linux
9ae3a8
 /***********************************************************/
9ae3a8
 /* Bluetooth support */
9ae3a8
 static int nb_hcis;
9ae3a8
@@ -961,6 +962,7 @@ static int bt_parse(const char *opt)
9ae3a8
     fprintf(stderr, "qemu: bad bluetooth parameter '%s'\n", opt);
9ae3a8
     return 1;
9ae3a8
 }
9ae3a8
+#endif
9ae3a8
 
9ae3a8
 static int parse_sandbox(QemuOpts *opts, void *opaque)
9ae3a8
 {
9ae3a8
@@ -3132,9 +3134,11 @@ int main(int argc, char **argv, char **envp)
9ae3a8
                     exit(1);
9ae3a8
                 break;
9ae3a8
 #endif
9ae3a8
+#if 0 // Disabled for Red Hat Enterprise Linux
9ae3a8
             case QEMU_OPTION_bt:
9ae3a8
                 add_device_config(DEV_BT, optarg);
9ae3a8
                 break;
9ae3a8
+#endif
9ae3a8
             case QEMU_OPTION_audio_help:
9ae3a8
                 AUD_help ();
9ae3a8
                 exit (0);
9ae3a8
@@ -4113,9 +4117,11 @@ int main(int argc, char **argv, char **envp)
9ae3a8
     }
9ae3a8
 #endif
9ae3a8
 
9ae3a8
+#if 0 // Disabled for Red Hat Enterprise Linux
9ae3a8
     /* init the bluetooth world */
9ae3a8
     if (foreach_device_config(DEV_BT, bt_parse))
9ae3a8
         exit(1);
9ae3a8
+#endif
9ae3a8
 
9ae3a8
     if (!xen_enabled()) {
9ae3a8
         /* On 32-bit hosts, QEMU is limited by virtual address space */
9ae3a8
-- 
9ae3a8
2.19.1
9ae3a8