bluez5_utils: add ability to build sixaxis plugin
PATCH 1/1 bluez5_utils: add ability to build sixaxis plugin
Signed-off-by Eric Limpens <[email protected]>
--- package/bluez5_utils/Config.in | 5 +++++ package/bluez5_utils/bluez5_utils.mk | 7 +++++++ 2 files changed, 12 insertions(+)
package/bluez5_utils/Config.in +5 -0
@@ -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
package/bluez5_utils/bluez5_utils.mk +7 -0
@@ -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
Signature · 1 line
1.9.1
PATCH 1/1 bluez5_utils: add ability to build sixaxis plugin
Dear Eric Limpens,
package/bluez5_utils/Config.in config BR2_PACKAGE_BLUEZ5_UTILS_EXPERIMENTAL · line 64
Quoted 4 lines · Eric Limpens
package/bluez5_utils/Config.in +4
-0+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
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com