2020-03-26 10:25:49 +01:00
|
|
|
NATIVEINCLUDES += -I$(RIOTBOARD)/native/include/
|
2017-09-22 14:52:12 +02:00
|
|
|
|
2024-01-16 15:15:06 +01:00
|
|
|
# only use pyterm wrapper if term target is requested
|
|
|
|
ifeq (,$(filter term,$(MAKECMDGOALS)))
|
|
|
|
RIOT_TERMINAL ?= native
|
2024-01-19 14:41:05 +01:00
|
|
|
else
|
|
|
|
RIOT_TERMINAL ?= pyterm
|
2024-01-16 15:15:06 +01:00
|
|
|
endif
|
|
|
|
|
2019-12-20 18:36:34 +01:00
|
|
|
RESET ?= $(RIOTBOARD)/native/dist/reset.sh
|
2021-02-18 11:17:31 +01:00
|
|
|
FLASHER ?=
|
2019-06-27 14:21:18 +02:00
|
|
|
FLASHFILE ?= $(ELFFILE)
|
|
|
|
|
2024-01-19 14:41:05 +01:00
|
|
|
ifeq (pyterm,$(RIOT_TERMINAL))
|
|
|
|
TERMFLAGS += -ps $(FLASHFILE)
|
|
|
|
PROCARGS := --process-args
|
|
|
|
else
|
2023-12-13 20:54:49 +01:00
|
|
|
TERMPROG ?= $(FLASHFILE)
|
2024-01-19 14:41:05 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ZEP_IP ?= [::1]
|
|
|
|
ZEP_PORT_BASE ?= 17754
|
|
|
|
ifeq (1,$(USE_ZEP))
|
|
|
|
ifeq (pyterm,$(RIOT_TERMINAL))
|
|
|
|
TERMFLAGS += --process-args '-z $(ZEP_IP):$(ZEP_PORT_BASE)'
|
2023-12-13 20:54:49 +01:00
|
|
|
else
|
2024-01-19 14:41:05 +01:00
|
|
|
TERMFLAGS += -z $(ZEP_IP):$(ZEP_PORT_BASE)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
ifneq (,$(ZEP_MAC))
|
|
|
|
ifeq (pyterm,$(RIOT_TERMINAL))
|
|
|
|
TERMFLAGS += --process-args '\-\-eui64=$(ZEP_MAC)'
|
|
|
|
else
|
|
|
|
TERMFLAGS += --eui64=$(ZEP_MAC)
|
|
|
|
endif
|
2023-12-13 20:54:49 +01:00
|
|
|
endif
|
2019-06-27 14:21:18 +02:00
|
|
|
|
2014-10-21 19:48:22 +02:00
|
|
|
# set the tap interface for term/valgrind
|
2023-12-15 01:12:46 +01:00
|
|
|
PORT ?= tap0
|
2024-01-19 14:41:05 +01:00
|
|
|
TERMFLAGS += $(PROCARGS) $(PORT)
|
2023-12-18 20:00:08 +01:00
|
|
|
|
2019-11-14 13:51:25 +01:00
|
|
|
# Configure default eeprom file
|
|
|
|
EEPROM_FILE ?= $(BINDIR)/native.eeprom
|
|
|
|
|
|
|
|
# set the eeprom file flags only when the periph_eeprom feature is used.
|
2020-06-25 10:17:10 +02:00
|
|
|
ifneq (,$(filter periph_eeprom,$(FEATURES_USED)))
|
|
|
|
EEPROM_FILE_FLAGS = --eeprom $(EEPROM_FILE)
|
2024-01-19 14:41:05 +01:00
|
|
|
ifeq (pyterm,$(RIOT_TERMINAL))
|
2023-12-23 17:21:15 +01:00
|
|
|
TERMFLAGS += --process-args '$(EEPROM_FILE_FLAGS)'
|
2024-01-19 14:41:05 +01:00
|
|
|
else
|
|
|
|
TERMFLAGS += $(EEPROM_FILE_FLAGS)
|
2023-12-23 17:21:15 +01:00
|
|
|
endif
|
2020-06-25 10:17:10 +02:00
|
|
|
endif
|
2019-11-14 13:51:25 +01:00
|
|
|
|
2022-04-08 13:51:38 +02:00
|
|
|
VCAN_IFNUM ?= 0
|
|
|
|
VCAN_IFNAME ?= vcan0
|
|
|
|
VCAN_IFACE ?= $(VCAN_IFNUM):$(VCAN_IFNAME)
|
|
|
|
# set the default vcan interface
|
|
|
|
ifneq (,$(filter periph_can,$(FEATURES_USED)))
|
|
|
|
PERIPH_CAN_FLAGS ?= --can $(VCAN_IFACE)
|
|
|
|
TERMFLAGS += $(PERIPH_CAN_FLAGS)
|
|
|
|
endif
|