Skip to content

Introduce libudev (branch yem/libudev-6)

Bernd Kuhls buildroot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v9 Latest12 patches 4 repliesIn review

Patches in v9 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12package/eudev: add option to enable the udev daemonpackage/eudev/Config.in system/Config.in+18 -70 replies
2/12package/eudev: allow building only the librarypackage/eudev/Config.in package/eudev/eudev.mk+40 -180 replies
3/12package/libudev: new virtual packagepackage/Config.in package/libudev/Config.in package/libudev/libudev.mk+14 -00 replies
4/12package/eudev: provides libudevpackage/eudev/Config.in package/eudev/eudev.mk+6 -10 replies
5/12package/systemd: provides libudevpackage/systemd/Config.in package/systemd/systemd.mk+5 -10 replies
6/12package/libudev: make it selectablepackage/eudev/Config.in package/libudev/Config.in+24 -80 replies
7/12package/qt5base: optionally use libudevpackage/qt5/qt5base/qt5base.mk+2 -20 replies
8/12package/libinput: only needs libudev, not udev daemonpackage/libinput/Config.in package/libinput/libinput.mk+8 -40 replies
9/12package/kodi: only needs libudev, not udev daemonpackage/kodi/Config.in package/kodi/kodi.mk+4 -40 replies
10/12package/libv4l: optionally use libudevpackage/libv4l/libv4l.mk+2 -20 replies
11/12package/libcec: optionally use libudevpackage/libcec/libcec.mk+2 -20 replies
12/12package/usbutils: only needs libudev, not udev daemonpackage/usbutils/Config.in package/usbutils/usbutils.mk+10 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v9 yet.

Read the v9 thread

Cover letter [Buildroot] [PATCH/next v9 00/12] Introduce libudev (branch yem/libudev-6)

Hi,

quoting Yann from 2016:
https://lists.buildroot.org/pipermail/buildroot/2016-July/167371.html

"Hello All!

This series introduces the possibility to just build and install libudev, without requiring that the /dev management be handled by eudev or systemd.

A lot of packages that have a dependency on udev, in fact only require a libudev, not a udev daemon. That's the case for e.g. libinput, libcec, mesa3d...

During previous developers days, it was suggested that libudev was to be made a virtual package that could be selected (like jpeg is). So I eventually got some time to rework it (since the series was not adopted by Peter as it was discussed during those DevDays:
https://lite5.framapad.org/p/buildrootfosdem15 ;-) ).

This series is a full rewrite from scratch, with very little caried over from the previous attempts (far back in the past).

- first come a few cleanup patches;

- then eudev is split in two, virtually providing to different packages in one, with two different configure/build/install procedures, one for libudev only, one for the full package;

- then the libudev virtual package is introduced, with eudev and

    systemd both declared as providers;

- libudev is made selectable, so that packages can select it instead

    of depending (like is usual) on the virtual package;

- eventually, two packages are converted over to using libudev:
qt5base, as an optional implicit dependency, and libinput, as a mandatory dependency.

Not all packages that reference udev have been switched over to depend on libudev, though, since it is unclear to me whether they require a udev daemon, or would be happy with just libudev. This can be done in follow up patches once libudev is eventually in the tree (for good this time I hope! ;-) )"

This patch series was rebased on Yann's latest code from 2020:
https://git.buildroot.org/~ymorin/git/buildroot/log/?h=yem/libudev-6
as suggested in 2021:
https://lists.buildroot.org/pipermail/buildroot/2021-March/607988.html
"eudev now has had the ability to only build the library for a while already"

and more packages were ported to make use of libudev.

Bernd Kuhls (4):
package/kodi: only needs libudev, not udev daemon package/libv4l: optionally use libudev package/libcec: optionally use libudev package/usbutils: only needs libudev, not udev daemon

Yann E. MORIN (8):
package/eudev: add option to enable the udev daemon package/eudev: allow building only the library package/libudev: new virtual package package/eudev: provides libudev package/systemd: provides libudev package/libudev: make it selectable package/qt5base: optionally use libudev package/libinput: only needs libudev, not udev daemon

 package/Config.in              |  1 +
 package/eudev/Config.in        | 45 +++++++++++++++++++++++++-------
 package/eudev/eudev.mk         | 47 ++++++++++++++++++++++++----------
 package/kodi/Config.in         |  4 +--
 package/kodi/kodi.mk           |  4 +--
 package/libcec/libcec.mk       |  4 +--
 package/libinput/Config.in     | 10 +++++---
 package/libinput/libinput.mk   |  2 +-
 package/libudev/Config.in      | 13 ++++++++++
 package/libudev/libudev.mk     |  7 +++++
 package/libv4l/libv4l.mk       |  4 +--
 package/qt5/qt5base/qt5base.mk |  4 +--
 package/systemd/Config.in      |  4 +++
 package/systemd/systemd.mk     |  2 +-
 package/usbutils/Config.in     | 12 ++++++---
 package/usbutils/usbutils.mk   |  2 +-
 system/Config.in               |  1 +
 17 files changed, 124 insertions(+), 42 deletions(-)
 create mode 100644 package/libudev/Config.in
 create mode 100644 package/libudev/libudev.mk
Signature · 6 lines
2.39.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot