Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] gpsd: Add config options for USB, Bluetooth, Qt.
@ 2013-05-23 14:43 Arn R
  2013-05-23 14:56 ` Thomas Petazzoni
  0 siblings, 1 reply; 7+ messages in thread
From: Arn R @ 2013-05-23 14:43 UTC (permalink / raw)
  To: buildroot

These options can now be disabled individually.
Previously, these options were simply enabled if the package they depended on was also enabled.
By default they will still be enabled if the packages they depend on are enabled.

Signed-off-by: Arn R <arnerro@gmail.com>
---
 package/gpsd/Config.in | 20 ++++++++++++++++++++
 package/gpsd/gpsd.mk   |  6 +++---
 2 files changed, 23 insertions(+), 3 deletions(-)

diff --git a/package/gpsd/Config.in b/package/gpsd/Config.in
index 337f8e7..c38d52b 100644
--- a/package/gpsd/Config.in
+++ b/package/gpsd/Config.in
@@ -90,6 +90,26 @@ config BR2_PACKAGE_GPSD_CONTROLSEND
 config BR2_PACKAGE_GPSD_SQUELCH
 	bool "squelch gpsd_report and gpsd_hexdump to save cpu"
 
+config BR2_PACKAGE_GPSD_BLUETOOTH_DEV
+	bool "allow GPS devices via Bluetooth"
+	default y
+	depends on BR2_PACKAGE_BLUEZ_UTILS
+	help
+	  Support Bluetooth devices with BlueZ.
+
+config BR2_PACKAGE_GPSD_USB_DEV
+	bool "allow GPS devices via USB"
+	default y
+	depends on BR2_PACKAGE_LIBUSB
+	help
+	  Support USB devices with libusb.
+
+config BR2_PACKAGE_GPSD_QTBINDING
+	bool "enable the Qt bindings"
+	default y
+	depends on BR2_PACKAGE_QT_NETWORK
+	help
+	  Builds the library libQgpsmm to provide Qt bindings.
 endmenu
 
 menu "Protocols"
diff --git a/package/gpsd/gpsd.mk b/package/gpsd/gpsd.mk
index 384726d..be4046f 100644
--- a/package/gpsd/gpsd.mk
+++ b/package/gpsd/gpsd.mk
@@ -44,7 +44,7 @@ else
 endif
 
 # Enable or disable Qt binding
-ifeq ($(BR2_PACKAGE_QT_NETWORK),y)
+ifeq ($(BR2_PACKAGE_GPSD_QTBINDING),y)
 	GPSD_SCONS_ENV += QMAKE="$(QT_QMAKE)"
 	GPSD_DEPENDENCIES += qt host-pkgconf
 else
@@ -52,14 +52,14 @@ else
 endif
 
 # If libusb is available build it before so the package can use it
-ifeq ($(BR2_PACKAGE_LIBUSB),y)
+ifeq ($(BR2_PACKAGE_GPSD_USB_DEV),y)
 	GPSD_DEPENDENCIES += libusb
 else
 	GPSD_SCONS_OPTS += usb=no
 endif
 
 # If bluetooth is available build it before so the package can use it
-ifeq ($(BR2_PACKAGE_BLUEZ_UTILS),y)
+ifeq ($(BR2_PACKAGE_GPSD_BLUETOOTH_DEV),y)
 	GPSD_DEPENDENCIES += bluez_utils
 else
 	GPSD_SCONS_OPTS += bluez=no
-- 
1.8.1.2

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

end of thread, other threads:[~2013-05-24  5:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-23 14:43 [Buildroot] [PATCH 1/1] gpsd: Add config options for USB, Bluetooth, Qt Arn R
2013-05-23 14:56 ` Thomas Petazzoni
2013-05-23 15:30   ` Arn R
2013-05-23 15:46     ` Thomas Petazzoni
2013-05-23 19:03       ` Arnout Vandecappelle
2013-05-23 19:12         ` Thomas Petazzoni
2013-05-24  5:16           ` Arnout Vandecappelle

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