mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 21:26:36 +00:00
package/*: test for BR2_PACKAGE_LIBGUDEV for dependency
Make the case of adding libgudev as a dependency more consistent with all other dependency packages. The <pkg>_DEPENDENCIES variable sets the build order which is conceptually independent of the underlying reason for that dependency. Also, remove the comments in hidapi.mk and udisks.mk. These comments explain why BR2_PACKAGE_LIBGUDEV is selected, so the comments in corresponding Config.in files are enough. Cc: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
d8566397db
commit
462b1cbfa6
@ -16,12 +16,7 @@ HIDAPI_LICENSE_FILES = LICENSE.txt LICENSE-gpl3.txt LICENSE-bsd.txt LICENSE-orig
|
|||||||
|
|
||||||
HIDAPI_DEPENDENCIES = libusb
|
HIDAPI_DEPENDENCIES = libusb
|
||||||
|
|
||||||
# When eudev is used as the udev provider, libgudev is automatically
|
ifeq ($(BR2_PACKAGE_LIBGUDEV),y)
|
||||||
# provided as it is part of eudev. However, when systemd is used as
|
|
||||||
# the udev provider, libgudev is not provided, and needs to be built
|
|
||||||
# separately. This is why we depend on the libgudev package only if
|
|
||||||
# systemd is used.
|
|
||||||
ifeq ($(BR2_INIT_SYSTEMD),y)
|
|
||||||
HIDAPI_DEPENDENCIES += libgudev
|
HIDAPI_DEPENDENCIES += libgudev
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ LIBMBIM_INSTALL_STAGING = YES
|
|||||||
|
|
||||||
LIBMBIM_DEPENDENCIES = libglib2 udev
|
LIBMBIM_DEPENDENCIES = libglib2 udev
|
||||||
|
|
||||||
ifeq ($(BR2_INIT_SYSTEMD),y)
|
ifeq ($(BR2_PACKAGE_LIBGUDEV),y)
|
||||||
LIBMBIM_DEPENDENCIES += libgudev
|
LIBMBIM_DEPENDENCIES += libgudev
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ MODEM_MANAGER_LICENSE_FILES = COPYING
|
|||||||
MODEM_MANAGER_DEPENDENCIES = host-pkgconf udev dbus-glib host-intltool
|
MODEM_MANAGER_DEPENDENCIES = host-pkgconf udev dbus-glib host-intltool
|
||||||
MODEM_MANAGER_INSTALL_STAGING = YES
|
MODEM_MANAGER_INSTALL_STAGING = YES
|
||||||
|
|
||||||
ifeq ($(BR2_INIT_SYSTEMD),y)
|
ifeq ($(BR2_PACKAGE_LIBGUDEV),y)
|
||||||
MODEM_MANAGER_DEPENDENCIES += libgudev
|
MODEM_MANAGER_DEPENDENCIES += libgudev
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ ifeq ($(BR2_PACKAGE_DHCPCD),y)
|
|||||||
NETWORK_MANAGER_CONF_OPTS += --with-dhcpcd=/sbin/dhcpcd
|
NETWORK_MANAGER_CONF_OPTS += --with-dhcpcd=/sbin/dhcpcd
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_INIT_SYSTEMD),y)
|
ifeq ($(BR2_PACKAGE_LIBGUDEV),y)
|
||||||
NETWORK_MANAGER_DEPENDENCIES += libgudev
|
NETWORK_MANAGER_DEPENDENCIES += libgudev
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -22,12 +22,7 @@ UDISKS_DEPENDENCIES = \
|
|||||||
|
|
||||||
UDISKS_CONF_OPTS = --disable-remote-access --disable-man-pages
|
UDISKS_CONF_OPTS = --disable-remote-access --disable-man-pages
|
||||||
|
|
||||||
# When eudev is used as the udev provider, libgudev is automatically
|
ifeq ($(BR2_PACKAGE_LIBGUDEV),y)
|
||||||
# provided as it is part of eudev. However, when systemd is used as the
|
|
||||||
# udev provider, libgudev is not provided, and needs to be built
|
|
||||||
# separately. This is why we select the libgudev package only if systemd
|
|
||||||
# is used.
|
|
||||||
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
|
||||||
UDISKS_DEPENDENCIES += libgudev
|
UDISKS_DEPENDENCIES += libgudev
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user