From patchwork Fri Dec 20 14:20:23 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Belloni X-Patchwork-Id: 304096 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 6646F2C00A8 for ; Sat, 21 Dec 2013 01:20:32 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id A44A8936DF; Fri, 20 Dec 2013 14:20:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4AuYZgGXxITM; Fri, 20 Dec 2013 14:20:31 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 1BE27852E7; Fri, 20 Dec 2013 14:20:31 +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 5AB741CE62B for ; Fri, 20 Dec 2013 14:20:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 575FC84AA8 for ; Fri, 20 Dec 2013 14:20:29 +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 O-MeRui2pWQl for ; Fri, 20 Dec 2013 14:20:28 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.free-electrons.com (top.free-electrons.com [176.31.233.9]) by whitealder.osuosl.org (Postfix) with ESMTP id 3EC8C8A882 for ; Fri, 20 Dec 2013 14:20:28 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 106) id 0B627831; Fri, 20 Dec 2013 15:20:27 +0100 (CET) Received: from localhost (128-79-216-6.hfc.dyn.abo.bbox.fr [128.79.216.6]) by mail.free-electrons.com (Postfix) with ESMTPSA id C50887D6; Fri, 20 Dec 2013 15:20:26 +0100 (CET) From: Alexandre Belloni To: buildroot@busybox.net Date: Fri, 20 Dec 2013 15:20:23 +0100 Message-Id: <1387549223-18285-1-git-send-email-alexandre.belloni@free-electrons.com> X-Mailer: git-send-email 1.8.3.2 Subject: [Buildroot] [PATCHv2] bluez-utils: Add GATT support 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 This allows to compile gatttool which can help use Bluetooth Low Energy devices. Signed-off-by: Alexandre Belloni --- package/bluez_utils/Config.in | 7 +++++++ package/bluez_utils/bluez_utils.mk | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/package/bluez_utils/Config.in b/package/bluez_utils/Config.in index e08e9be2db95..1315b9ef4166 100644 --- a/package/bluez_utils/Config.in +++ b/package/bluez_utils/Config.in @@ -36,6 +36,13 @@ config BR2_PACKAGE_BLUEZ_UTILS_USB help USB support +config BR2_PACKAGE_BLUEZ_UTILS_GATT + bool "GATT support" + select BR2_PACKAGE_READLINE + help + Generic Attribute Profile (GATT) support. This provides profile + discovery and description services for Bluetooth Low Energy. + This will install the gatttool utility. endif comment "bluez-utils needs a toolchain w/ wchar, threads" diff --git a/package/bluez_utils/bluez_utils.mk b/package/bluez_utils/bluez_utils.mk index 7038638a0748..4da2e6435c40 100644 --- a/package/bluez_utils/bluez_utils.mk +++ b/package/bluez_utils/bluez_utils.mk @@ -37,6 +37,13 @@ BLUEZ_UTILS_CONF_OPT += \ --disable-audio endif +ifeq ($(BR2_PACKAGE_BLUEZ_UTILS_GATT),y) +BLUEZ_UTILS_DEPENDENCIES += readline +BLUEZ_UTILS_CONF_OPT += --enable-gatt +else +BLUEZ_UTILS_CONF_OPT += --disable-gatt +endif + # USB support ifeq ($(BR2_PACKAGE_BLUEZ_UTILS_USB),y) BLUEZ_UTILS_DEPENDENCIES += libusb