From b343ebe06f303ebe5d46e4a05aaceafcf0a04b3d Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Thu, 14 Oct 2021 11:45:36 +0200 Subject: [PATCH] cmsis-dap/linux: Link against libhidapi-hidraw libhidapi-libusb detaches a kernel module but does not reattach again. This may wrack interaction with other programs using hidapi. --- src/platforms/hosted/Makefile.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/hosted/Makefile.inc b/src/platforms/hosted/Makefile.inc index ad888638..f3e3248b 100644 --- a/src/platforms/hosted/Makefile.inc +++ b/src/platforms/hosted/Makefile.inc @@ -18,7 +18,7 @@ CFLAGS += -DHOSTED_BMP_ONLY=$(HOSTED_BMP_ONLY) ifneq (, $(findstring linux, $(SYS))) SRC += serial_unix.c -HIDAPILIB = hidapi-libusb +HIDAPILIB = hidapi-hidraw ifeq ($(ASAN), 1) CFLAGS += -fsanitize=address -Wno-format-truncation LDFLAGS += -lasan