[Buildroot] Discussing libudev, was: Re: [PATCH v6 09/32] mesa3d: dri2 does not need udev support

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Mon May 12 21:50:40 UTC 2014


Dear Bernd Kuhls,

On Mon, 12 May 2014 23:12:16 +0200, Bernd Kuhls wrote:

> I copied the systemd package and build only the libudev part, short snippets 
> from my hacky package:
> 
> LIBUDEV_VERSION = 212
> LIBUDEV_SITE = http://www.freedesktop.org/software/systemd/
> LIBUDEV_SOURCE = systemd-$(LIBUDEV_VERSION).tar.xz
> [...]
> define LIBUDEV_BUILD_CMDS
>         $(TARGET_MAKE_ENV) $(MAKE1) -C $(@D) \
>                 src/libudev/libudev.pc \
>                 src/shared/errno-from-name.h \
>                 src/shared/errno-to-name.h \
>                 src/shared/af-from-name.h \
>                 src/shared/af-to-name.h
>         $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) libudev.la
> endef
> 
> followed by some LIBUDEV_INSTALL_STAGING/TARGET_CMDS file copying.

To be honest, this seems quite hacky to me, and fragile for future
version bumps.

If you run a complete monster software such as XBMC, I'm pretty sure
your platform can also afford to run either eudev or systemd, no?

In Buildroot, we've always tried to avoid going *against* upstream
decisions. The decision of upstream for udev is to bundle it as part of
systemd. Gentoo has decided to provide a maintained fork of udev as
eudev, so we support both options. But I definitely wouldn't want to
support things that are completely Buildroot-specific.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list