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:
parent
473a959ec5
commit
879e082703
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user