Parent: bbfeef3a04b0ad4de5802790b6bcb2e4d9fb9e5e
Author: Thomas Perale <thomas.perale@mind.be>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2025-05-01 22:02:43
Tree: 864617b1eea9dcd7261c1b8abb23c52fdcb000b2
input: fix HID compilation w/o HoG Commit [1] introduced a dependency with the HID plugin in the HoG code As a result, building with --enable-hid --disable-hog caused linker errors due to undefined references to HoG-related functions: ``` > ./configure --enable-hid --disable-hog ... > make ... CCLD src/bluetoothd /usr/bin/ld: profiles/input/bluetoothd-manager.o: in function `input_init': /home/../bluez/profiles/input/manager.c:122:(.text.input_init+0x1c8): undefined reference to `input_set_auto_sec' collect2: error: ld returned 1 exit status make[1]: *** [Makefile:6376: src/bluetoothd] Error 1 ``` This patch moves the reading of the HOG specific configuration of the 'input.conf' file: LEAutoSecurity, to the HoG plugin file. [1] f2778f587 input: Add LEAutoSecurity setting to input.conf
Diffstat
| M | profiles/input/device.h | | | 1 | - |
| M | profiles/input/hog.c | | | 40 | +++++++++++++++++++++++++++++++++++- - - - - |
| M | profiles/input/manager.c | | | 11 | +- - - - - - - - - - |
3 files changed, 36 insertions(+), 16 deletions(-)