Parent: b111b5e15eb74e08b74cb3c7e91bcb21f54be4c7
Author: Thomas Perale <thomas.perale@mind.be>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2025-05-01 22:03:13
Tree: 194b3c9bdc2900a67a978fb361b7f7324fb5b7ae
input: fix HoG compilation w/o HID Commit [1] introduced a dependency with the HID plugin in the HoG code As a result, building with --disable-hid --enable-hog caused linker errors due to undefined references to HID-related functions: ``` > ./configure --disable-hid --enable-hog > make /usr/bin/ld: profiles/input/bluetoothd-hog.o: in function `hog_accept': /home/../bluez/profiles/input/hog.c:184:(.text.hog_accept+0xbb): undefined reference to `input_get_auto_sec' /usr/bin/ld: profiles/input/bluetoothd-hog.o: in function `hog_disconnect': /home/../bluez/profiles/input/hog.c:205:(.text.hog_disconnect+0x12): undefined reference to `input_get_userspace_hid' collect2: error: ld returned 1 exit status make[1]: *** [Makefile:6344: src/bluetoothd] Error 1 make: *** [Makefile:4695: all] Error 2 ``` This patch duplicate the read of the 'UserspaceHID=persist' config entry in the HoG plugin file to remove the dependency on the HID plugin files. [1] 1782bfd79 input: Add support for UserspaceHID=persist Fixes: https://github.com/bluez/bluez/issues/1228
Diffstat
| M | profiles/input/device.c | | | 5 | - - - - - |
| M | profiles/input/device.h | | | 1 | - |
| M | profiles/input/hog.c | | | 14 | ++++++++++++- - |
3 files changed, 12 insertions(+), 8 deletions(-)