mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] bluez: add option for libbluetooth
@ 2019-03-20 14:31 Lucas Stach
  0 siblings, 0 replies; only message in thread
From: Lucas Stach @ 2019-03-20 14:31 UTC (permalink / raw)
  To: ptxdist

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-03-20 14:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-20 14:31 [ptxdist] [PATCH] bluez: add option for libbluetooth Lucas Stach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox