package/hidapi: allow building without udev
Get series with b4
b4 am [email protected]Versions newest first
- v2 Latest5 patches 0 repliesNew
Changes in v2 from the cover letter
- rebased on top of commit 74def2cdd4 ("package/hidapi: propagate dependencies of libgudev")
- split into four patches (libmanette: select libgudev, libgudev -> udev, cmake conversion, optional hidraw backend)
- libmanette: select BR2_PACKAGE_HIDAPI_HIDRAW, as it only looks up hidapi-hidraw.pc
- new patch: libmanette selects libgudev, which it used to get through hidapi
- new patch: add myself to DEVELOPERS for hidapi
- drop HIDAPI_SUPPORTS_IN_SOURCE_BUILD = NO, not needed
- Config.in: use the usual "needs udev /dev management" comment, simplify the default of the hidraw option
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | package/libmanette: select libgudevpackage/ package/ | +3 | 0 replies | |
| 2/5 | package/hidapi: depend on udev instead of libgudevpackage/ package/ | +3 | 0 replies | |
| 3/5 | package/hidapi: convert to cmake-packagepackage/ | +7 | 0 replies | |
| 4/5 | package/hidapi: make the hidraw backend optionalpackage/ package/ package/ | +28 | 0 replies | |
| 5/5 | DEVELOPERS: add Tomas Mudrunka for hidapiDEVELOPERS | +3 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [Buildroot] [PATCH v2 0/5] package/hidapi: allow building without udev
This series allows to use hidapi (libhidapi-libusb) on systems without udev, by making the hidraw backend optional.
To do so, the package is converted to cmake, which allows to select the backends to build. Before that, the bogus libgudev dependency is replaced by the udev one, as hidapi only uses libudev; libmanette, which relied on hidapi to get libgudev, now selects it directly.
Existing configurations keep building the same hidapi libraries: the hidraw backend is enabled by default when udev is available. libmanette, the only in-tree user that requires hidapi-hidraw, now selects it.
The last patch adds me to DEVELOPERS for hidapi, as we use it in production on systems without udev and I'm happy to look after it. Feel free to drop it if not wanted.
Changes v1 -> v2:
- rebased on top of commit 74def2cdd4 ("package/hidapi: propagate dependencies of libgudev")
- split into four patches (libmanette: select libgudev, libgudev -> udev, cmake conversion, optional hidraw backend)
- libmanette: select BR2_PACKAGE_HIDAPI_HIDRAW, as it only looks up hidapi-hidraw.pc
- new patch: libmanette selects libgudev, which it used to get through hidapi
- new patch: add myself to DEVELOPERS for hidapi
- drop HIDAPI_SUPPORTS_IN_SOURCE_BUILD = NO, not needed
- Config.in: use the usual "needs udev /dev management" comment, simplify the default of the hidraw option
Tested with utils/test-pkg (default toolchain set):
- BR2_PACKAGE_HIDAPI=y (no udev): all OK, armv7m-uclibc skipped (no NPTL)
- with eudev and the hidraw backend: OK, except bootlin-armv5-uclibc, which fails because wcsdup() is not declared by that toolchain's uClibc-ng headers; the same failure happens on master without this series (fixed in Buildroot's own uClibc by package/uclibc/0007-wchar.h-declare-wcsdup-for-POSIX.1-2008.patch)
- BR2_PACKAGE_LIBSIGROK=y and BR2_PACKAGE_AVRDUDE=y with hidapi, no udev, on bootlin-armv7-glibc: OK (both use hidapi-libusb)
Tomas Mudrunka (5):
package/libmanette: select libgudev package/hidapi: depend on udev instead of libgudev package/hidapi: convert to cmake-package package/hidapi: make the hidraw backend optional
DEVELOPERS: add Tomas Mudrunka for hidapi
DEVELOPERS | 3 +++ package/hidapi/Config.in | 26 +++++++++++++++++++------- package/hidapi/hidapi.mk | 19 ++++++++++++++----- package/libmanette/Config.in | 4 +++- package/libmanette/libmanette.mk | 9 ++------- 5 files changed, 41 insertions(+), 20 deletions(-)
Signature · 6 lines
2.56.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot