mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-26 06:53:52 +01:00
Merge #19261
19261: tests/{sys_fido2_ctap/usbus_board_reset}: fix stdio_usb_serial_jtag dependency r=gschorcht a=gschorcht
### Contribution description
This PR fixes the `stdio_usb_serial_jtag` dependency problem for `tests/sys_fido2_ctap` and `usbus_board_reset`.
- There are boards that select the STDIO backend used depending on whether `usbus` is enabled. Usually the `fido2_ctap_transport_hid` module pulls in `usbus_hid` and thus `usbus`, but since this dependency resolution is done after reading the `Makefile.dep` of the board, it may happen that the wrong STDIO backend is selected. Therefore `usbus` is selected directly in the `Makefile` of `tests/sys_fido2_ctap` .
- To improve the selection of the `stdio_usb_serial_jtag` backend in `esp32s3-pros3`, it checks for any `usbus_%` module not only `usbus`.
### Testing procedure
GreenCI
### Issues/PRs references
Co-authored-by: Gunar Schorcht <gunar@schorcht.net>
This commit is contained in:
commit
537f844b93
@ -20,5 +20,12 @@ config BOARD_ESP32S2_WEMOS_MINI
|
||||
select HAS_PERIPH_USBDEV
|
||||
select HAS_TINYUSB_DEVICE
|
||||
select HAS_HIGHLEVEL_STDIO
|
||||
select MODULE_USBUS_CDC_ACM if TEST_KCONFIG && MODULE_USBUS
|
||||
select PACKAGE_TINYUSB if TEST_KCONFIG && !MODULE_USBUS
|
||||
|
||||
choice STDIO_IMPLEMENTATION
|
||||
default MODULE_STDIO_CDC_ACM if MODULE_USBUS
|
||||
default MODULE_STDIO_TINYUSB_CDC_ACM if PACKAGE_TINYUSB
|
||||
endchoice
|
||||
|
||||
source "$(RIOTBOARD)/common/esp32s2/Kconfig"
|
||||
|
||||
@ -1,2 +0,0 @@
|
||||
CONFIG_PACKAGE_TINYUSB=y
|
||||
CONFIG_MODULE_STDIO_TINYUSB_CDC_ACM=y
|
||||
@ -24,10 +24,9 @@ config BOARD_ESP32S3_PROS3
|
||||
select HAS_PERIPH_USBDEV
|
||||
select HAS_TINYUSB_DEVICE
|
||||
select MODULE_USB_BOARD_RESET if TEST_KCONFIG && MODULE_STDIO_USB_SERIAL_JTAG
|
||||
select MODULE_USBUS_CDC_ACM if MODULE_USBUS
|
||||
|
||||
choice STDIO_IMPLEMENTATION
|
||||
bool "STDIO implementation"
|
||||
depends on TEST_KCONFIG
|
||||
default MODULE_STDIO_CDC_ACM if MODULE_USBUS
|
||||
default MODULE_STDIO_TINYUSB_CDC_ACM if MODULE_TINYUSB_DEVICE
|
||||
default MODULE_STDIO_USB_SERIAL_JTAG if !MODULE_USBUS && !MODULE_TINYUSB_DEVICE
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
ifeq (,$(filter stdio_% slipdev_stdio usbus tinyusb_device,$(USEMODULE)))
|
||||
ifeq (,$(filter stdio_% slipdev_stdio usbus usbus% tinyusb_device,$(USEMODULE)))
|
||||
# Use stdio_usb_serial_jtag if no other stdio is requested explicitly
|
||||
# and neither USBUS nor tinyusb_device are used
|
||||
USEMODULE += stdio_usb_serial_jtag
|
||||
|
||||
@ -4,6 +4,7 @@ BOARD ?= nrf52840dk
|
||||
include ../Makefile.tests_common
|
||||
|
||||
USEMODULE += fido2_ctap_transport_hid
|
||||
USEMODULE += usbus
|
||||
USEPKG += fido2_tests
|
||||
|
||||
USB_VID ?= $(USB_VID_TESTING)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user