1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/common/makefiles/stdio_cdc_acm.dep.mk: fix

This fixes compilation issues in `tests/pkg/tinyusb_netdev` with
newer versions of the RISC-V toolchain due to two competing USB
stacks being pulled in. With the older toolchain the build system
warns:

    The following features may conflict: periph_usbdev tinyusb_device

But builds fine (even though surprises at runtime are likely). The
newer toolchain takes an issue with the same symbol being linked
in more than once (and more than one instance not being `weak`).
This commit is contained in:
Marian Buschsieweke 2024-02-12 19:55:40 +01:00
parent 597b2ad907
commit 38ab1472e6
No known key found for this signature in database
GPG Key ID: 77AA882EC78084E6

View File

@ -1,5 +1,5 @@
ifeq (,$(filter-out stdio_cdc_acm,$(filter stdio_% slipdev_stdio,$(USEMODULE))))
ifneq (,$(filter tinyusb_device,$(USEMODULE)))
ifneq (,$(filter tinyusb_device,$(USEMODULE))$(filter tinyusb,$(USEPKG)))
# Use stdio_tinyusb_cdc_acm only if no other stdio is requested explicitly
# and tinyusb_device is used for any other reason
USEMODULE += stdio_tinyusb_cdc_acm