From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtprelay05.ispgateway.de ([80.67.31.94]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1UBPms-0006h5-6N for ptxdist@pengutronix.de; Fri, 01 Mar 2013 14:14:10 +0100 Received: from [78.47.165.117] (helo=regiomontanus.your-server.de) by smtprelay05.ispgateway.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1UBPmr-0000gd-7a for ptxdist@pengutronix.de; Fri, 01 Mar 2013 14:14:09 +0100 From: Bernhard Walle Date: Fri, 1 Mar 2013 14:14:07 +0100 Message-Id: <1362143647-32743-1-git-send-email-bernhard@bwalle.de> Subject: [ptxdist] [PATCH] bluez: Make it possible to deselect USB support Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de When using a Bluetooth module that is not connected with USB, it makes sense to deselect support for it. This saves building libusb and libusb-compat. Signed-off-by: Bernhard Walle --- rules/bluez.in | 9 ++++++++- rules/bluez.make | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/rules/bluez.in b/rules/bluez.in index 474c434..cf489a4 100644 --- a/rules/bluez.in +++ b/rules/bluez.in @@ -4,7 +4,7 @@ menuconfig BLUEZ tristate "bluez " select DBUS select GLIB - select LIBUSB_COMPAT + select LIBUSB_COMPAT if BLUEZ_USB select ALSA_LIB if BLUEZ_ALSA select GSTREAMER if BLUEZ_GSTREAMER select GST_PLUGINS_BASE if BLUEZ_GSTREAMER @@ -21,6 +21,13 @@ config BLUEZ_SYSTEMD_UNIT depends on SYSTEMD prompt "install systemd unit files for bluez" +config BLUEZ_USB + bool "USB support" + default y + help + Build bluez with USB support. Only disable this if your Bluetooth + adapter is not connected via USB (for example with an UART or SDIO). + config BLUEZ_ALSA bool "alsa support" help diff --git a/rules/bluez.make b/rules/bluez.make index 848b99f..9bfd4df 100644 --- a/rules/bluez.make +++ b/rules/bluez.make @@ -52,7 +52,7 @@ BLUEZ_CONF_OPT := $(CROSS_AUTOCONF_USR) \ --disable-gatt-example \ --$(call ptx/endis, PTXCONF_BLUEZ_GSTREAMER)-gstreamer \ --$(call ptx/endis, PTXCONF_BLUEZ_ALSA)-alsa \ - --enable-usb \ + --$(call ptx/endis, PTXCONF_BLUEZ_USB)-usb \ --disable-tracer \ --enable-tools \ --enable-bccmd \ -- 1.8.1.4 -- ptxdist mailing list ptxdist@pengutronix.de