summaryrefslogtreecommitdiff
path: root/recipes-core/libusb/usb-tools/001-nohidapi.patch
blob: a06549415096831afd829c89a75bbd07f1e77c22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
*
* Openembedded does not appear to have an HID API (Human Interface Devices).
* We should not need those tests.
*
====================================================================================
diff --git a/README.md b/README.md
index 7feb63d..4ae3d1d 100644
--- a/README.md
+++ b/README.md
@@ -21,7 +21,7 @@ debian-based distros, the following command should do the right thing:
 
 ```
 $ sudo apt-get update
-$ sudo apt install libusb-1.0-0-dev libssl-dev libhidapi-dev
+$ sudo apt install libusb-1.0-0-dev libssl-dev
 ```
 
 After these are installed, the usual autotools-based setup should be followed:
diff --git a/configure.ac b/configure.ac
index b34b6be..b5956ea 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,10 +33,6 @@ PKG_CHECK_MODULES([libusb], [libusb-1.0])
 # libssl
 PKG_CHECK_MODULES([ssl], [openssl])
 
-# hidapi
-PKG_CHECK_MODULES([hid], [hidapi], [], [
-  PKG_CHECK_MODULES([hid], [hidapi-hidraw], [], [
-    PKG_CHECK_MODULES([hid], [hidapi-libusb])])])
 
 # libpthread
 m4_include([m4/ax_pthread.m4])
diff --git a/src/Makefile.am b/src/Makefile.am
index cb55f05..072e564 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -9,7 +9,6 @@ dist_bin_SCRIPTS = msc.sh scptest.sh test.sh usbpwrtest
 bin_PROGRAMS =		\
 	acmc		\
 	acmd		\
-	cleware		\
 	companion-desc	\
 	control		\
 	device-reset	\
@@ -44,11 +43,6 @@ switchbox_SOURCES = switchbox.c
 switchbox_CFLAGS = $(AM_CFLAGS)
 switchbox_LDADD =
 
-# This needs HIDAPI
-cleware_SOURCES = cleware.c
-cleware_CFLAGS = $(AM_CFLAGS) $(hid_CFLAGS)
-cleware_LDADD = $(hid_LIBS)
-
 # These need libusb-1.0
 companion_desc_SOURCES = companion-desc.c
 companion_desc_CFLAGS = $(AM_CFLAGS) $(libusb_CFLAGS)