2024-02-02 15:41:31 +01:00
|
|
|
NATIVEINCLUDES += -I$(RIOTCPU)/native/include/
|
2018-04-12 17:48:07 +02:00
|
|
|
|
2020-11-09 09:04:55 +01:00
|
|
|
ifneq (,$(filter periph_can,$(USEMODULE)))
|
2022-01-18 16:56:44 +01:00
|
|
|
ifeq (,$(filter libsocketcan,$(USEPKG)))
|
|
|
|
# link system libsocketcan if not using the provided package
|
|
|
|
LINKFLAGS += -lsocketcan
|
|
|
|
endif
|
2020-10-01 10:42:55 +02:00
|
|
|
endif
|
|
|
|
|
2024-08-17 13:52:48 +02:00
|
|
|
ifneq (,$(filter periph_timer,$(USEMODULE)))
|
|
|
|
# using timer_settime requires -lrt
|
|
|
|
LINKFLAGS += -lrt
|
|
|
|
endif
|
|
|
|
|
2019-07-01 13:02:53 +02:00
|
|
|
TOOLCHAINS_SUPPORTED = gnu llvm afl
|
2021-04-02 18:42:34 +02:00
|
|
|
|
|
|
|
# Platform triple as used by Rust
|
|
|
|
ifeq ($(OS) $(OS_ARCH),Linux x86_64)
|
2023-12-08 11:22:32 +01:00
|
|
|
ifneq (,$(filter arch_32bit,$(FEATURES_USED)))
|
|
|
|
RUST_TARGET = i686-unknown-linux-gnu
|
|
|
|
else
|
|
|
|
RUST_TARGET = x86_64-unknown-linux-gnu
|
|
|
|
endif
|
2021-04-02 18:42:34 +02:00
|
|
|
endif
|
2024-02-02 15:41:31 +01:00
|
|
|
|
|
|
|
include $(RIOTMAKE)/arch/native.inc.mk
|
2022-11-21 12:24:58 +01:00
|
|
|
|
|
|
|
USE_LIBUCONTEXT := $(shell pkg-config libucontext 2> /dev/null && echo 1 || echo 0)
|
|
|
|
|
|
|
|
ifeq ($(USE_LIBUCONTEXT),1)
|
|
|
|
CFLAGS += $(pkg-config libucontext --cflags) -DUSE_LIBUCONTEXT=1
|
|
|
|
LINKFLAGS += $(shell pkg-config libucontext --libs)
|
|
|
|
endif
|