aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Andy Shevchenko <andriy.shevchenko@linux.intel.com>2017-05-01 15:59:44 +0300
committerGravatar Peter Korsgaard <peter@korsgaard.com>2017-05-05 14:36:53 +0200
commitcfe6112780431aaa712373841ef03f0ae57b1a75 (patch)
treef846fd261a3f9b890d31f9c05415d4d9622e233b
parent9af3ba604cb21ea735f243fe7196d2c560e10ec0 (diff)
downloadbuildroot-cfe6112780431aaa712373841ef03f0ae57b1a75.tar.gz
buildroot-cfe6112780431aaa712373841ef03f0ae57b1a75.tar.bz2
bluez5_utils: allow building the midi profile
The midi profile was introduced in BlueZ 5.44. Cc: Marcin Bis <marcin@bis.org.pl> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/bluez5_utils/Config.in7
-rw-r--r--package/bluez5_utils/bluez5_utils.mk8
2 files changed, 15 insertions, 0 deletions
diff --git a/package/bluez5_utils/Config.in b/package/bluez5_utils/Config.in
index 181003b42c..bdb6682c16 100644
--- a/package/bluez5_utils/Config.in
+++ b/package/bluez5_utils/Config.in
@@ -66,6 +66,13 @@ config BR2_PACKAGE_BLUEZ5_PLUGINS_HEALTH
help
Build BlueZ 5.x health plugin
+config BR2_PACKAGE_BLUEZ5_PLUGINS_MIDI
+ bool "build midi profile"
+ select BR2_PACKAGE_ALSA_LIB
+ select BR2_PACKAGE_ALSA_LIB_SEQ
+ help
+ Build BlueZ 5.x midi plugin
+
config BR2_PACKAGE_BLUEZ5_PLUGINS_NFC
bool "build nfc plugin"
help
diff --git a/package/bluez5_utils/bluez5_utils.mk b/package/bluez5_utils/bluez5_utils.mk
index 431783997d..4a03234881 100644
--- a/package/bluez5_utils/bluez5_utils.mk
+++ b/package/bluez5_utils/bluez5_utils.mk
@@ -45,6 +45,14 @@ else
BLUEZ5_UTILS_CONF_OPTS += --disable-health
endif
+# enable midi profile
+ifeq ($(BR2_PACKAGE_BLUEZ5_PLUGINS_MIDI),y)
+BLUEZ5_UTILS_CONF_OPTS += --enable-midi
+BLUEZ5_UTILS_DEPENDENCIES += alsa-lib
+else
+BLUEZ5_UTILS_CONF_OPTS += --disable-midi
+endif
+
# enable nfc plugin
ifeq ($(BR2_PACKAGE_BLUEZ5_PLUGINS_NFC),y)
BLUEZ5_UTILS_CONF_OPTS += --enable-nfc