mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Lucas Stach <l.stach@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] bluez: add option for libbluetooth
Date: Wed, 20 Mar 2019 15:31:54 +0100	[thread overview]
Message-ID: <20190320143154.8906-1-l.stach@pengutronix.de> (raw)

libbluetooth is a pretty big library and isn't used in a lot of cases
where the clients communicate with the daemon via dbus.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 rules/bluez.in            | 6 ++++++
 rules/bluez.make          | 4 +++-
 rules/gst-plugins-bad1.in | 1 +
 3 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/rules/bluez.in b/rules/bluez.in
index 57e0356afb0d..375c8cb2046c 100644
--- a/rules/bluez.in
+++ b/rules/bluez.in
@@ -21,6 +21,12 @@ menuconfig BLUEZ
 
 if BLUEZ
 
+config BLUEZ_LIBBLUETOOTH
+	bool "install libbluetooth"
+	help
+	  Install libbluetooth used by applications not directly talking
+	  to the bluez daemon via dbus.
+
 config BLUEZ_SYSTEMD_UNIT
 	bool
 	default y
diff --git a/rules/bluez.make b/rules/bluez.make
index d5fb6366b391..985b0d0318bb 100644
--- a/rules/bluez.make
+++ b/rules/bluez.make
@@ -44,7 +44,7 @@ BLUEZ_CONF_OPT	:= $(CROSS_AUTOCONF_USR) \
 	--disable-pie \
 	--enable-threads \
 	--disable-backtrace \
-	--enable-library \
+	--$(call ptx/endis, PTXCONF_BLUEZ_LIBBLUETOOTH)-library \
 	--$(call ptx/endis, PTXCONF_BLUEZ_INSTALL_TESTSCRIPTS)-test \
 	--disable-nfc \
 	--disable-sap \
@@ -91,7 +91,9 @@ $(STATEDIR)/bluez.targetinstall:
 	@$(call install_fixup, bluez,AUTHOR,"Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de>")
 	@$(call install_fixup, bluez,DESCRIPTION, "Bluetooth protocol stack")
 
+ifdef PTXCONF_BLUEZ_LIBBLUETOOTH
 	@$(call install_lib, bluez, 0, 0, 0644, libbluetooth)
+endif
 
 	@$(call install_copy, bluez, 0, 0, 0755, -, /usr/libexec/bluetooth/bluetoothd)
 	@$(call install_copy, bluez, 0, 0, 0755, -, /usr/libexec/bluetooth/obexd)
diff --git a/rules/gst-plugins-bad1.in b/rules/gst-plugins-bad1.in
index c3c467a3e921..965798f46cca 100644
--- a/rules/gst-plugins-bad1.in
+++ b/rules/gst-plugins-bad1.in
@@ -10,6 +10,7 @@ menuconfig GST_PLUGINS_BAD1
 	select BZIP2			if GST_PLUGINS_BAD1_BZ2
 	select BZIP2_LIBBZ2		if GST_PLUGINS_BAD1_BZ2
 	select BLUEZ			if GST_PLUGINS_BAD1_BLUEZ
+	select BLUEZ_LIBBLUETOOTH	if GST_PLUGINS_BAD1_BLUEZ
 	select LCMS			if GST_PLUGINS_BAD1_LCMS2
 	select LIBCURL			if GST_PLUGINS_BAD1_CURL
 	select LIBXML2			if GST_PLUGINS_BAD1_DASH || GST_PLUGINS_BAD1_SMOOTHSTREAMING || GST_PLUGINS_BAD1_TTML
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

                 reply	other threads:[~2019-03-20 14:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190320143154.8906-1-l.stach@pengutronix.de \
    --to=l.stach@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox