mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
0c2cfe99e6
Adds a separate board for native64 instead of the `NATIVE_64BIT` workaround. The files in `boards/native64` are more or less dummy files and just include the `boards/native` logic (similar to `openlabs-kw41z-mini-256kib`). The main logic for native is in `makefiles/arch/native.inc.mk`, `cpu/native` and `boards/native`. The remaining changes concern the build system, and change native board checks to native CPU checks to cover both boards.
22 lines
545 B
Makefile
22 lines
545 B
Makefile
NATIVEINCLUDES += -I$(RIOTCPU)/native/include/
|
|
|
|
ifneq (,$(filter periph_can,$(USEMODULE)))
|
|
ifeq (,$(filter libsocketcan,$(USEPKG)))
|
|
# link system libsocketcan if not using the provided package
|
|
LINKFLAGS += -lsocketcan
|
|
endif
|
|
endif
|
|
|
|
TOOLCHAINS_SUPPORTED = gnu llvm afl
|
|
|
|
# Platform triple as used by Rust
|
|
ifeq ($(OS) $(OS_ARCH),Linux x86_64)
|
|
ifneq (,$(filter arch_32bit,$(FEATURES_USED)))
|
|
RUST_TARGET = i686-unknown-linux-gnu
|
|
else
|
|
RUST_TARGET = x86_64-unknown-linux-gnu
|
|
endif
|
|
endif
|
|
|
|
include $(RIOTMAKE)/arch/native.inc.mk
|