[Buildroot] [PATCH 1/1] package/cwiid: add bluez5_utils support

From: Fabrice Fontaine <hidden>
Date: 2020-01-11 09:22:15
Subsystem: the rest · Maintainer: Linus Torvalds

Signed-off-by: Fabrice Fontaine <redacted>
---
 package/cwiid/Config.in | 2 +-
 package/cwiid/cwiid.mk  | 6 +++++-
 2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/package/cwiid/Config.in b/package/cwiid/Config.in
index 7ee8117355..c66ffe1aee 100644
--- a/package/cwiid/Config.in
+++ b/package/cwiid/Config.in
@@ -4,7 +4,7 @@ config BR2_PACKAGE_CWIID
 	depends on BR2_USE_WCHAR # bluez_utils -> libglib2
 	depends on BR2_TOOLCHAIN_HAS_THREADS # bluez_utils -> dbus, alsa-lib, libglib2
 	depends on BR2_USE_MMU # bluez_utils -> dbus, libglib2
-	select BR2_PACKAGE_BLUEZ_UTILS
+	select BR2_PACKAGE_BLUEZ_UTILS if !BR2_PACKAGE_BLUEZ5_UTILS
 	help
 	  A collection of Linux tools written in C for interfacing to
 	  the Nintendo Wiimote.
diff --git a/package/cwiid/cwiid.mk b/package/cwiid/cwiid.mk
index c092e401df..4f8f091909 100644
--- a/package/cwiid/cwiid.mk
+++ b/package/cwiid/cwiid.mk
@@ -12,7 +12,11 @@ CWIID_LICENSE_FILES = COPYING
 CWIID_AUTORECONF = YES
 CWIID_INSTALL_STAGING = YES
 
-CWIID_DEPENDENCIES = host-pkgconf host-bison host-flex bluez_utils
+CWIID_DEPENDENCIES = \
+	host-pkgconf \
+	host-bison \
+	host-flex \
+	$(if $(BR2_PACKAGE_BLUEZ_UTILS),bluez_utils,bluez5_utils)
 
 # Disable python support. This disables the 2 following things:
 #   - wminput Python plugin support
-- 
2.24.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help