mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +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
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter periph_can,$(FEATURES_USED)))
|
ifneq (,$(filter periph_can,$(FEATURES_USED)))
|
||||||
|
USEPKG += libsocketcan
|
||||||
ifeq ($(OS),Linux)
|
ifeq ($(OS),Linux)
|
||||||
CFLAGS += -DCAN_DLL_NUMOF=2
|
CFLAGS += -DCAN_DLL_NUMOF=2
|
||||||
endif
|
endif
|
||||||
|
@ -6,7 +6,10 @@ ifeq ($(BUILDOSXNATIVE),1)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter periph_can,$(USEMODULE)))
|
ifneq (,$(filter periph_can,$(USEMODULE)))
|
||||||
LINKFLAGS += -lsocketcan
|
ifeq (,$(filter libsocketcan,$(USEPKG)))
|
||||||
|
# link system libsocketcan if not using the provided package
|
||||||
|
LINKFLAGS += -lsocketcan
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
TOOLCHAINS_SUPPORTED = gnu llvm afl
|
TOOLCHAINS_SUPPORTED = gnu llvm afl
|
||||||
|
Loading…
Reference in New Issue
Block a user