summaryrefslogtreecommitdiffstats
path: root/package/hidapi
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2015-11-18 21:38:39 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-11-18 21:54:55 +0100
commit462b1cbfa68eba1bae0d4d732aeefdf3308ecae0 (patch)
treedc2a7bdb9bd8c66be7e44aa98940e436237537aa /package/hidapi
parentd8566397dbc267320b2f989e32b90159787c6394 (diff)
downloadbuildroot-462b1cbfa68eba1bae0d4d732aeefdf3308ecae0.tar.gz
buildroot-462b1cbfa68eba1bae0d4d732aeefdf3308ecae0.zip
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>
Diffstat (limited to 'package/hidapi')
-rw-r--r--package/hidapi/hidapi.mk7
1 files changed, 1 insertions, 6 deletions
diff --git a/package/hidapi/hidapi.mk b/package/hidapi/hidapi.mk
index 2457554748..eb5d5c3556 100644
--- a/package/hidapi/hidapi.mk
+++ b/package/hidapi/hidapi.mk
@@ -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
OpenPOWER on IntegriCloud