Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] bluez5_utils: add ability to build sixaxis plugin
@ 2015-07-16  8:46 Eric Limpens
  2015-07-18 20:54 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Limpens @ 2015-07-16  8:46 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Eric Limpens <limpens@gmail.com>
---
 package/bluez5_utils/Config.in       | 5 +++++
 package/bluez5_utils/bluez5_utils.mk | 7 +++++++
 2 files changed, 12 insertions(+)

diff --git a/package/bluez5_utils/Config.in b/package/bluez5_utils/Config.in
index 472432b..dade0ee 100644
--- a/package/bluez5_utils/Config.in
+++ b/package/bluez5_utils/Config.in
@@ -58,6 +58,11 @@ config BR2_PACKAGE_BLUEZ5_UTILS_EXPERIMENTAL
 	help
 	  Build BlueZ 5.x experimental plugins (SAP, NFC, ...).
 
+config BR2_PACKAGE_BLUEZ5_PLUGINS_SIXAXIS
+	bool "build sixaxis plugin"
+	help
+	  Build BlueZ 5.x sixaxis plugin (support Sony Dualshock controller)
+
 config BR2_PACKAGE_BLUEZ5_UTILS_TEST
 	bool "build tests"
 	help
diff --git a/package/bluez5_utils/bluez5_utils.mk b/package/bluez5_utils/bluez5_utils.mk
index a1adbe1..4c50e53 100644
--- a/package/bluez5_utils/bluez5_utils.mk
+++ b/package/bluez5_utils/bluez5_utils.mk
@@ -41,6 +41,13 @@ else
 BLUEZ5_UTILS_CONF_OPTS += --disable-experimental
 endif
 
+# enable sixaxis plugin
+ifeq ($(BR2_PACKAGE_BLUEZ5_PLUGINS_SIXAXIS),y)
+BLUEZ5_UTILS_CONF_OPTS += --enable-sixaxis
+else
+BLUEZ5_UTILS_CONF_OPTS += --disable-sixaxis
+endif
+
 # install gatttool (For some reason upstream choose not to do it by default)
 ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS_GATTTOOL),y)
 define BLUEZ5_UTILS_INSTALL_GATTTOOL
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH 1/1] bluez5_utils: add ability to build sixaxis plugin
  2015-07-16  8:46 [Buildroot] [PATCH 1/1] bluez5_utils: add ability to build sixaxis plugin Eric Limpens
@ 2015-07-18 20:54 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-07-18 20:54 UTC (permalink / raw)
  To: buildroot

Dear Eric Limpens,

On Thu, 16 Jul 2015 10:46:14 +0200, Eric Limpens wrote:

> +config BR2_PACKAGE_BLUEZ5_PLUGINS_SIXAXIS
> +	bool "build sixaxis plugin"
> +	help
> +	  Build BlueZ 5.x sixaxis plugin (support Sony Dualshock controller)

In fact, the sixaxis plugin can only be enabled when udev support is
available:

AM_CONDITIONAL(SIXAXIS, test "${enable_sixaxis}" = "yes" &&
                                         test "${enable_udev}" != "no")

So I've adjusted the Config.in description of the option to describe
this udev dependency, and applied your patch.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-18 20:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-16  8:46 [Buildroot] [PATCH 1/1] bluez5_utils: add ability to build sixaxis plugin Eric Limpens
2015-07-18 20:54 ` Thomas Petazzoni

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