1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-27 15:31:17 +01:00
RIOT/sys/can/Makefile.dep
Marian Buschsieweke 747d5fb00d
sys/can: depend on libsocketcan for (native%)
Since `can.h` is including `libsocketcan.h` on `native%`, we need to
depend on that package.

Co-authored-by: crasbe <crasbe@gmail.com>
2025-04-09 13:10:06 +02:00

26 lines
565 B
Makefile

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
# on native32/native64/native, the can headers include libsocketcan.h for
# some definitions, so we actually need to use that package
ifneq (,$(filter native%,$(BOARD)))
USEPKG += libsocketcan
endif
USEMODULE += memarray