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:
Baruch Siach
2015-11-18 21:38:39 +02:00
committed by Thomas Petazzoni
parent d8566397db
commit 462b1cbfa6
5 changed files with 5 additions and 15 deletions

View File

@@ -16,12 +16,7 @@ HIDAPI_LICENSE_FILES = LICENSE.txt LICENSE-gpl3.txt LICENSE-bsd.txt LICENSE-orig
HIDAPI_DEPENDENCIES = libusb
# When eudev is used as the udev provider, libgudev is automatically
# 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)
ifeq ($(BR2_PACKAGE_LIBGUDEV),y)
HIDAPI_DEPENDENCIES += libgudev
endif