This repository has been archived by the owner on Jan 28, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMakefile
87 lines (63 loc) · 1.86 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# name of your application
APPLICATION = radio-firmware
# If no BOARD is found in the environment, use this default:
BOARD ?= turpial
EXTERNAL_BOARD_DIRS ?= $(CURDIR)/boards
# This has to be the absolute path to the RIOT base directory:
RIOTBASE ?= $(CURDIR)/RIOT
# Application absolute path
APPBASE ?= $(CURDIR)
# Radio firmware absolute path
RADIOBASE ?= $(CURDIR)
# Comment this out to disable code in RIOT that does safety checking
# which is not needed in a production environment but helps in the
# development process:
DEVELHELP ?= 0
# Change this to 0 show compiler invocation lines by default:
QUIET ?= 1
EXTERNAL_MODULE_DIRS += sys
# Initialize GNRC netif
USEMODULE += gnrc_netdev_default
USEMODULE += auto_init_gnrc_netif
USEMODULE += gnrc_ipv6_router
USEMODULE += gnrc_icmpv6
USEMODULE += gnrc_icmpv6_echo
USEMODULE += gnrc_udp
USEMODULE += gnrc_pktdump
USEMODULE += manet
USEMODULE += aodvv2
USEMODULE += shell_extended
USEMODULE += vaina
USEMODULE += ps
USEMODULE += netstats_l2
USEMODULE += netstats_ipv6
USEMODULE += slipdev
# Enable SLAAC
CFLAGS += -DCONFIG_GNRC_IPV6_NIB_SLAAC=1
USE_SLIPTTY ?= 0
ifeq (1,$(USE_SLIPTTY))
USEMODULE += slipdev_stdio
SLIP_UART ?= "0"
SLIP_BAUDRATE ?= 115200
else
SLIP_UART ?= "1"
SLIP_BAUDRATE ?= 115200
endif
# export slip parameters
CFLAGS += -DSLIPDEV_PARAM_UART="UART_DEV($(SLIP_UART))"
CFLAGS += -DSLIPDEV_PARAM_BAUDRATE=$(SLIP_BAUDRATE)
CFLAGS += -I$(CURDIR)
ifeq (1,$(USE_SLIPTTY))
.PHONY: host-tools
HOST_TOOLS=sliptty
host-tools:
$(Q)env -u CC -u CFLAGS make -C $(RIOTTOOLS)
sliptty:
$(Q)env -u CC -u CFLAGS make -C $(RIOTTOOLS)/sliptty
IPV6_PREFIX = "fc00::/16"
# Configure terminal parameters
TERMDEPS += host-tools
TERMPROG ?= sudo sh $(CURDIR)/dist/tools/vaina/start_network.sh
TERMFLAGS ?= $(FLAGS_EXTRAS) $(IPV6_PREFIX) $(PORT) $(SLIP_BAUDRATE)
endif
include $(RIOTBASE)/Makefile.include