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

sys/can: move dependency resolution in its own Makefile.dep

This commit is contained in:
Alexandre Abadie 2023-04-21 10:02:46 +02:00
parent 9fb5708efe
commit 113200f9b2
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
2 changed files with 20 additions and 15 deletions

View File

@ -394,25 +394,11 @@ ifneq (,$(filter evtimer_mbox,$(USEMODULE)))
USEMODULE += core_mbox
endif
ifneq (,$(filter can,$(USEMODULE)))
USEMODULE += can_raw
ifneq (,$(filter can_mbox,$(USEMODULE)))
USEMODULE += core_mbox
endif
USEMODULE += memarray
endif
ifneq (,$(filter can_isotp,$(USEMODULE)))
USEMODULE += ztimer
USEMODULE += ztimer_usec
USEMODULE += gnrc_pktbuf
ifneq (,$(filter can_%,$(USEMODULE)))
endif
ifneq (,$(filter conn_can,$(USEMODULE)))
USEMODULE += can
USEMODULE += can_mbox
USEMODULE += ztimer
USEMODULE += ztimer_usec
endif
ifneq (,$(filter entropy_source_%,$(USEMODULE)))

19
sys/can/Makefile.dep Normal file
View File

@ -0,0 +1,19 @@
USEMODULE += can_raw
ifneq (,$(filter can_isotp,$(USEMODULE)))
USEMODULE += ztimer
USEMODULE += ztimer_usec
USEMODULE += gnrc_pktbuf
endif
ifneq (,$(filter conn_can,$(USEMODULE)))
USEMODULE += can_mbox
USEMODULE += ztimer
USEMODULE += ztimer_usec
endif
ifneq (,$(filter can_mbox,$(USEMODULE)))
USEMODULE += core_mbox
endif
USEMODULE += memarray