Skip to content

Commit

Permalink
sys/can: move dependency resolution in its own Makefile.dep
Browse files Browse the repository at this point in the history
  • Loading branch information
aabadie committed Jun 15, 2023
1 parent 9fb5708 commit 113200f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 15 deletions.
16 changes: 1 addition & 15 deletions sys/Makefile.dep
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down
19 changes: 19 additions & 0 deletions sys/can/Makefile.dep
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 113200f

Please sign in to comment.