mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
sys/fido2: move dependency resolution in its own Makefile.dep
This commit is contained in:
parent
9bd7950a1a
commit
ff4b2d1680
@ -745,33 +745,7 @@ ifneq (,$(filter dbgpin,$(USEMODULE)))
|
||||
FEATURES_REQUIRED += dbgpin
|
||||
endif
|
||||
|
||||
ifneq (,$(filter fido2_ctap_%,$(USEMODULE)))
|
||||
USEMODULE += fido2_ctap_transport
|
||||
USEMODULE += fido2_ctap
|
||||
ifneq (,$(filter fido2_ctap_transport_hid,$(USEMODULE)))
|
||||
USEMODULE += ztimer64_msec
|
||||
USEMODULE += usbus_hid
|
||||
DISABLE_MODULE += auto_init_usbus
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq (,$(filter fido2_ctap,$(USEMODULE)))
|
||||
FEATURES_REQUIRED += periph_flashpage
|
||||
FEATURES_REQUIRED += periph_flashpage_in_address_space
|
||||
FEATURES_REQUIRED += periph_gpio_irq
|
||||
|
||||
USEPKG += tiny-asn1
|
||||
USEPKG += tinycbor
|
||||
USEPKG += micro-ecc
|
||||
|
||||
USEMODULE += mtd_flashpage
|
||||
USEMODULE += mtd_write_page
|
||||
USEMODULE += ztimer_msec
|
||||
USEMODULE += event
|
||||
USEMODULE += event_timeout_ztimer
|
||||
USEMODULE += cipher_modes
|
||||
USEMODULE += crypto_aes_256
|
||||
USEMODULE += hashes
|
||||
ifneq (,$(filter fido2_ctap%,$(USEMODULE)))
|
||||
USEMODULE += fido2
|
||||
endif
|
||||
|
||||
|
29
sys/fido2/Makefile.dep
Normal file
29
sys/fido2/Makefile.dep
Normal file
@ -0,0 +1,29 @@
|
||||
ifneq (,$(filter fido2_ctap_%,$(USEMODULE)))
|
||||
USEMODULE += fido2_ctap_transport
|
||||
USEMODULE += fido2_ctap
|
||||
ifneq (,$(filter fido2_ctap_transport_hid,$(USEMODULE)))
|
||||
USEMODULE += ztimer64_msec
|
||||
USEMODULE += usbus_hid
|
||||
DISABLE_MODULE += auto_init_usbus
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq (,$(filter fido2_ctap,$(USEMODULE)))
|
||||
FEATURES_REQUIRED += periph_flashpage
|
||||
FEATURES_REQUIRED += periph_flashpage_in_address_space
|
||||
FEATURES_REQUIRED += periph_gpio_irq
|
||||
|
||||
USEPKG += tiny-asn1
|
||||
USEPKG += tinycbor
|
||||
USEPKG += micro-ecc
|
||||
|
||||
USEMODULE += mtd_flashpage
|
||||
USEMODULE += mtd_write_page
|
||||
USEMODULE += ztimer_msec
|
||||
USEMODULE += event
|
||||
USEMODULE += event_timeout_ztimer
|
||||
USEMODULE += cipher_modes
|
||||
USEMODULE += crypto_aes_256
|
||||
USEMODULE += hashes
|
||||
USEMODULE += fido2
|
||||
endif
|
Loading…
Reference in New Issue
Block a user