From patchwork Thu May 23 14:43:01 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arn R X-Patchwork-Id: 245966 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id A3E392C0085 for ; Fri, 24 May 2013 00:43:43 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D2B548F068; Thu, 23 May 2013 14:43:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ilwR-LREpcTn; Thu, 23 May 2013 14:43:38 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 0D1A98EFC6; Thu, 23 May 2013 14:43:38 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 3B06B8F753 for ; Thu, 23 May 2013 14:43:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id EA3398EFC6 for ; Thu, 23 May 2013 14:43:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id R6IufD5zyUXa for ; Thu, 23 May 2013 14:43:36 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pb0-f67.google.com (mail-pb0-f67.google.com [209.85.160.67]) by whitealder.osuosl.org (Postfix) with ESMTPS id 30FC28E82A for ; Thu, 23 May 2013 14:43:36 +0000 (UTC) Received: by mail-pb0-f67.google.com with SMTP id ro12so1237364pbb.6 for ; Thu, 23 May 2013 07:43:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:x-mailer; bh=eqM72oSLGEhsUGKwUdHIssLNsN/TRBpW6EjHd17tTNM=; b=aj0nPzn/UV1SMvmEEdVNKkXAxDEYtKPjhVyXBG6iTN7z+pitv4YYVuMw8BSaI5zVlj fBZiXsX6B5yozpYvaQ/ADMJjUf7i1o+uipyy3vJQQRadEUnLMQG3JM7UAaLXDg79P5gn zvO9EA77nQrk3M2eZCHrMd7PYrFGg8OpTFdcqy8OYNuz2NBL0/BPnmQsUNHoBjIV5wLi nxHpT4U0mJrP7ecNvUa1UZnmdyhUVdT04XPL7dzjPV77R/dEewO05/+iZoXFG3+5vXB4 BpNEuudEvUWfAuTGXqzZhopWCsoKA9Z7T6QEK37jxaOp8AsUF1JrCtR6b7tdlzBeNZk/ vCeg== X-Received: by 10.66.134.41 with SMTP id ph9mr3436065pab.150.1369320215832; Thu, 23 May 2013 07:43:35 -0700 (PDT) Received: from localhost.localdomain (ppp121-44-111-167.lns20.syd6.internode.on.net. [121.44.111.167]) by mx.google.com with ESMTPSA id vm10sm13088554pab.5.2013.05.23.07.43.34 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 23 May 2013 07:43:35 -0700 (PDT) From: Arn R To: buildroot@busybox.net Date: Fri, 24 May 2013 00:43:01 +1000 Message-Id: <1369320181-6069-1-git-send-email-arnerro@gmail.com> X-Mailer: git-send-email 1.8.1.2 Subject: [Buildroot] [PATCH 1/1] gpsd: Add config options for USB, Bluetooth, Qt. X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net 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 --- 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