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

cpu/native: use socketcan pkg

This commit is contained in:
Daniel Lockau 2022-01-18 16:56:44 +01:00
parent 473a959ec5
commit 879e082703
2 changed files with 5 additions and 1 deletions

View File

@ -9,6 +9,7 @@ ifneq (,$(filter mtd,$(USEMODULE)))
endif
ifneq (,$(filter periph_can,$(FEATURES_USED)))
USEPKG += libsocketcan
ifeq ($(OS),Linux)
CFLAGS += -DCAN_DLL_NUMOF=2
endif

View File

@ -6,7 +6,10 @@ ifeq ($(BUILDOSXNATIVE),1)
endif
ifneq (,$(filter periph_can,$(USEMODULE)))
LINKFLAGS += -lsocketcan
ifeq (,$(filter libsocketcan,$(USEPKG)))
# link system libsocketcan if not using the provided package
LINKFLAGS += -lsocketcan
endif
endif
TOOLCHAINS_SUPPORTED = gnu llvm afl