fix build error with --enable-hid and --enable-hog options
Status from this message: This series was applied to bluetooth/bluez.git (master)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 1 replyApplied
- v12 patches 3 repliesSuperseded
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | input: fix HID compilation w/o HoGprofiles/ profiles/ profiles/ | +36 | 1 reply | |
| 2/2 | input: fix HoG compilation w/o HIDprofiles/ profiles/ profiles/ | +12 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH BlueZ v2 0/2] fix build error with --enable-hid and --enable-hog options
This patch series fixes build failures when --enable-hid and --enable-hog are not enabled together. The issue is documented in the following ticket:
https://github.com/bluez/bluez/issues/1228.
Compiling with the --enable-hid --disable-hog option would give an error because the HID plugin relied on functions defined in the HoG plugin:
``` > ./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 ```
Compiling with the --disable-hid --enable-hog option would give an error because the HID plugin relied on functions defined in the HoG plugin:
``` > ./configure --disable-hid --enable-hog > make ... /usr/bin/ld: profiles/input/bluetoothd-hog.o: in function `hog_disconnect': /home/../bluez-5.79/profiles/input/hog.c:211:(.text.hog_disconnect+0x12): undefined reference to `input_get_userspace_hid' collect2: error: ld returned 1 exit status ```
This patch series follows the indication gave by Vudentz to make both plugins independents of each other.
[changes in v2]
Following the review of Luiz Augusto von Dentz, the reading of the LEAutoSecurity config entry is moved to the HoG files and the reading of UserspaceHID entry is duplicated in the HoG file.
Thomas Perale (2):
input: fix HID compilation w/o HoG
input: fix HoG compilation w/o HID
configure.ac | 3 +++ profiles/input/device.c | 11 +++++++++++ profiles/input/device.h | 1 + profiles/input/hog.c | 19 +++++++++++-------- 4 files changed, 26 insertions(+), 8 deletions(-)
Signature · 1 line
2.49.0