From 0dd918501dd8358db615e2e011c587cfd5af7d94 Mon Sep 17 00:00:00 2001 From: Jonghwa Lee Date: Mon, 6 Feb 2023 13:01:53 +0900 Subject: [PATCH] Enable HoG (HID over GATT) plugin It enables the HoG plugin to support BLE joypad. To enable the feature only, it adds additional configuration option, '--enable-hog', and enables it in BREDR+LE as default. The feature was checked with Xbox wireless controller. Change-Id: Ia10efbe99565644ba9ed3aacdbad68e7fafae7b2 Signed-off-by: Jonghwa Lee --- Makefile.plugins | 2 +- configure.ac | 4 ++++ packaging/bluez.spec | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile.plugins b/Makefile.plugins index 5728bfac..3a331bd1 100755 --- a/Makefile.plugins +++ b/Makefile.plugins @@ -84,7 +84,7 @@ builtin_sources += profiles/input/manager.c \ profiles/input/device.h profiles/input/device.c \ profiles/input/hidp_defs.h -if TIZEN_UNUSED_PLUGIN +if TIZEN_HOG_PLUGIN builtin_modules += hog builtin_sources += profiles/input/hog.c profiles/input/uhid_copy.h \ profiles/input/hog-lib.c profiles/input/hog-lib.h \ diff --git a/configure.ac b/configure.ac index 76af42af..a2305280 100755 --- a/configure.ac +++ b/configure.ac @@ -328,6 +328,10 @@ AC_ARG_ENABLE(hid, AC_HELP_STRING([--disable-hid], [disable HID Plugin]), [enable_hid=${enableval}]) AM_CONDITIONAL(TIZEN_HID_PLUGIN, test "${enable_hid}" != "no") +AC_ARG_ENABLE(hog, AC_HELP_STRING([--enable-hog], + [enable HOG Plugin]), [enable_hog=${enableval}]) +AM_CONDITIONAL(TIZEN_HOG_PLUGIN, test "${enable_hid}" = "yes") + AC_ARG_ENABLE(health, AC_HELP_STRING([--enable-health], [enable HEALTH profiles]), [enable_health=${enableval}]) AM_CONDITIONAL(TIZEN_HEALTH_PLUGIN, test "${enable_health}" = "yes") diff --git a/packaging/bluez.spec b/packaging/bluez.spec index d23bbb0d..65d735e4 100755 --- a/packaging/bluez.spec +++ b/packaging/bluez.spec @@ -234,6 +234,7 @@ export CFLAGS+=" -DARCH64" --enable-obex \ --enable-library \ --enable-gatt \ + --enable-hog \ --enable-testing \ --enable-experimental \ --enable-autopyypair=no \ @@ -371,6 +372,7 @@ export CFLAGS+=" -DARCH64" --enable-experimental \ --enable-autopair=no \ --enable-hid=yes \ + --enable-hog \ --enable-bredr=yes \ --enable-tizenunusedplugin=no \ --disable-crypto-tests \ -- 2.34.1