summaryrefslogtreecommitdiffstats
path: root/package/gnupg2
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2016-02-21 18:34:52 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-02-21 21:26:51 +0100
commite44f0ce28972da1c4f5509db76fda1d9cc994181 (patch)
treea2459e34ba3ff5d907be49218287012f28d74f96 /package/gnupg2
parent96eb6862343f59e152a8bc2ea093917d56c2ed4d (diff)
downloadbuildroot-e44f0ce28972da1c4f5509db76fda1d9cc994181.tar.gz
buildroot-e44f0ce28972da1c4f5509db76fda1d9cc994181.zip
package/gnupg2: add optional support for libusb-compat
When libusb-compat was compiled before, gnupg2 will use it as optional dependency: $ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/libexec/scdaemon | grep NEEDED [...] 0x0000000000000001 (NEEDED) Shared library: [libusb-0.1.so.4] [...] Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/gnupg2')
-rw-r--r--package/gnupg2/gnupg2.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/gnupg2/gnupg2.mk b/package/gnupg2/gnupg2.mk
index 2e1f067b94..8d4f3737e9 100644
--- a/package/gnupg2/gnupg2.mk
+++ b/package/gnupg2/gnupg2.mk
@@ -38,6 +38,13 @@ else
GNUPG2_CONF_OPTS += --disable-bzip2
endif
+ifeq ($(BR2_PACKAGE_LIBUSB_COMPAT),y)
+GNUPG2_CONF_OPTS += --enable-ccid-driver
+GNUPG2_DEPENDENCIES += libusb-compat
+else
+GNUPG2_CONF_OPTS += --disable-ccid-driver
+endif
+
ifeq ($(BR2_PACKAGE_READLINE),y)
GNUPG2_CONF_OPTS += --with-readline=$(STAGING_DIR)
GNUPG2_DEPENDENCIES += readline
OpenPOWER on IntegriCloud