linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ 07/10] build: Add option to disable HoG profile
Date: Fri, 11 Nov 2016 19:22:41 +0200	[thread overview]
Message-ID: <1478884964-7543-8-git-send-email-luiz.dentz@gmail.com> (raw)
In-Reply-To: <1478884964-7543-1-git-send-email-luiz.dentz@gmail.com>

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

This adds --disable-hog option to configure which make HoG plugin
to not be build thus reducing the build time and binary size of
bluetoothd in systems where HID over GATT profile is not supported.
---
 Makefile.plugins | 2 ++
 configure.ac     | 4 ++++
 2 files changed, 6 insertions(+)

diff --git a/Makefile.plugins b/Makefile.plugins
index c6951b1..ba58518 100644
--- a/Makefile.plugins
+++ b/Makefile.plugins
@@ -64,6 +64,7 @@ builtin_sources += profiles/input/manager.c \
 			profiles/input/hidp_defs.h
 endif
 
+if HOG
 builtin_modules += hog
 builtin_sources += profiles/input/hog.c profiles/input/uhid_copy.h \
 			profiles/input/hog-lib.c profiles/input/hog-lib.h \
@@ -73,6 +74,7 @@ builtin_sources += profiles/input/hog.c profiles/input/uhid_copy.h \
 			profiles/input/suspend.h profiles/input/suspend-none.c
 
 EXTRA_DIST += profiles/input/suspend-dummy.c
+endif
 
 if EXPERIMENTAL
 builtin_modules += health
diff --git a/configure.ac b/configure.ac
index e63579e..3c2dc4d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -164,6 +164,10 @@ AC_ARG_ENABLE(test, AC_HELP_STRING([--disable-hid],
 		[disable HID profile]), [enable_hid=${enableval}])
 AM_CONDITIONAL(HID, test "${enable_hid}" != "no")
 
+AC_ARG_ENABLE(test, AC_HELP_STRING([--disable-hog],
+		[disable HoG profile]), [enable_hog=${enableval}])
+AM_CONDITIONAL(HOG, test "${enable_hog}" != "no")
+
 AC_ARG_ENABLE(tools, AC_HELP_STRING([--disable-tools],
 		[disable Bluetooth tools]), [enable_tools=${enableval}])
 AM_CONDITIONAL(TOOLS, test "${enable_tools}" != "no")
-- 
2.7.4


  parent reply	other threads:[~2016-11-11 17:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-11 17:22 [PATCH BlueZ 00/10] build: Add options for every plugin Luiz Augusto von Dentz
2016-11-11 17:22 ` [PATCH BlueZ 01/10] build: Add option to enable NFC pairing Luiz Augusto von Dentz
2016-11-11 17:22 ` [PATCH BlueZ 02/10] build: Add option to enable SAP profile Luiz Augusto von Dentz
2016-11-11 17:22 ` [PATCH BlueZ 03/10] build: Add option to disable A2DP profile Luiz Augusto von Dentz
2016-11-11 17:22 ` [PATCH BlueZ 04/10] build: Add option to disable AVRCP profile Luiz Augusto von Dentz
2016-11-11 17:22 ` [PATCH BlueZ 05/10] build: Add option to disable network profiles Luiz Augusto von Dentz
2016-11-11 17:22 ` [PATCH BlueZ 06/10] build: Add option to disable HID profile Luiz Augusto von Dentz
2016-11-11 17:22 ` Luiz Augusto von Dentz [this message]
2016-11-11 17:22 ` [PATCH BlueZ 08/10] build: Add option to enable health profiles Luiz Augusto von Dentz
2016-11-11 17:22 ` [PATCH BlueZ 09/10] build: Update experimental documentation Luiz Augusto von Dentz
2016-11-11 17:22 ` [PATCH BlueZ 10/10] build: Update bootstrap-configure with new build options Luiz Augusto von Dentz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1478884964-7543-8-git-send-email-luiz.dentz@gmail.com \
    --to=luiz.dentz@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).