aboutsummaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2019-03-24 23:10:19 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-03-25 17:55:55 +0100
commit0d060f855f7d9cd688fb9f64360a6538c711b409 (patch)
tree11cba43eeec0d553a863cc3ebbb1686c25b7b542 /package
parent7eea3ae22453feaa4f40659927c3c9274e478528 (diff)
downloadbuildroot-0d060f855f7d9cd688fb9f64360a6538c711b409.tar.gz
buildroot-0d060f855f7d9cd688fb9f64360a6538c711b409.tar.bz2
package/owfs: add optional libftdi dependency
ftdi support has been added in version 3.1p2 and https://github.com/owfs/owfs/commit/2982df8ca648bd9cec4d820151046b044ef504e0 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package')
-rw-r--r--package/owfs/owfs.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/owfs/owfs.mk b/package/owfs/owfs.mk
index 2d0f24fb7c..cd1c2dba6d 100644
--- a/package/owfs/owfs.mk
+++ b/package/owfs/owfs.mk
@@ -42,6 +42,20 @@ else
OWFS_CONF_OPTS += --disable-owfs
endif
+ifeq ($(BR2_PACKAGE_LIBFTDI1),y)
+OWFS_CONF_OPTS += \
+ --enable-ftdi \
+ --with-libftdi-config=$(STAGING_DIR)/usr/bin/libftdi1-config
+OWFS_DEPENDENCIES += libftdi1
+else ifeq ($(BR2_PACKAGE_LIBFTDI),y)
+OWFS_CONF_OPTS += \
+ --enable-ftdi \
+ --with-libftdi-config=$(STAGING_DIR)/usr/bin/libftdi-config
+OWFS_DEPENDENCIES += libftdi
+else
+OWFS_CONF_OPTS += --disable-ftdi
+endif
+
ifeq ($(BR2_PACKAGE_LIBUSB),y)
OWFS_CONF_OPTS += --enable-usb
OWFS_DEPENDENCIES += libusb