-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild-list.mk
135 lines (110 loc) · 3.04 KB
/
build-list.mk
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
SHELL := /usr/bin/env bash
#
# Build list for ION-core 4.1.3
#
BUILD_LIST_INCLUDED = YES
######################
# Architecture
# (set automatically)
######################
# Detect the OS
UNAME_S := $(shell uname -s)
UNAME_M := $(shell uname -m)
LONGBIT := $(shell getconf LONG_BIT | tr -d ' ')
#LONGBIT := 32
# Default to unset
OS_FLAGS :=
# Set OS_FLAGS based on OS and LONGBIT
ifeq ($(UNAME_S), Linux)
ifeq ($(LONGBIT), 64)
OS_FLAGS := -Dlinux -DSPACE_ORDER=3 -fno-strict-aliasing
else
OS_FLAGS := -Dlinux -DSPACE_ORDER=2 -fno-strict-aliasing
endif
endif
ifeq ($(UNAME_S), Darwin)
ifeq ($(LONGBIT), 64)
OS_FLAGS := -Dunix -Ddarwin -DSPACE_ORDER=3 -m64
else
OS_FLAGS := -Dunix -Ddarwin -DSPACE_ORDER=2 -m32
endif
endif
ifeq ($(UNAME_S), FreeBSD)
ifeq ($(LONGBIT), 64)
OS_FLAGS := -Dfreebsd -DSPACE_ORDER=3 -m64
else
OS_FLAGS := -Dfreebsd -DSPACE_ORDER=2 -m32
endif
endif
# Print the selected OS_FLAGS for debugging
$(info OS: $(LONGBIT)-bits $(UNAME_S); HW ARCH: $(UNAME_M))
$(info OS_FLAGS set to: $(OS_FLAGS))
##################
# FLAGS for Extension for Locally Sourced Bundles
#
# PBN_EXT : Previous Node Extension Block
# BPQ_EXT : Bundle Protocol QoS Extension Block
# BAE_EXT : Bundle Age Extension Block
# SNW_EXT : Spray and Wait Permit Extension Block
# IMC_EXT : IMC Multicast Extension Block
#EXT_FLAGS = -DPNB_EXT
EXT_FLAGS += -DBPQ_EXT
#EXT_FLAGS += -DBAE_EXT
#EXT_FLAGS += -DSNW_EXT
EXT_FLAGS += -DIMC_EXT
##################
##################
# PART I: Mandatory Functions (do not edit)
#
## ICI
PROGRAMS := ionadmin ionwarn rfxclock ionrestart
## BPv7
PROGRAMS += bpadmin bpclm bpclock bptransit ipnadmin ipnadminep ipnfw
## Utility Programs
PROGRAMS += bpsink bpsource bpecho bping bpstats bptrace
##################
##################
# PART II: Optional Feature List
#
# This list can be modified. At least one CLA must be included.
## ICI utilities
PROGRAMS += psmwatch sdrwatch
## BPv7 utilities
PROGRAMS += bpversion
## Load-and-Go Command
PROGRAMS += lgagent lgsend
## CLA: must include at least one of STCP, UDP, or LTP
### STCP CLA
PROGRAMS += stcpcli stcpclo
### UDP CLA
PROGRAMS += udpcli udpclo
### LTP CLA
PROGRAMS += ltpcli ltpclo udplsi udplso ltpclock ltpdeliv ltpmeter ltpadmin
## CFDP Class 1
PROGRAMS += bputa cfdpclock cfdptest cfdpadmin
# Utility Programs
PROGRAMS += bprecvfile bpsendfile
PROGRAMS += bpchat
PROGRAMS += bpcounter bpdriver
PROGRAMS += bplist bpcancel
PROGRAMS += owltsim
# To Do: add bpcp feature for 4.1.3s
# PROGRAMS += bpcp bpcpd
#
# PART III: PLATFORM & BP Extension
#
# Work-in-progress
#
# PART IV: Testing Mapping
#
# Specify test list on build-list options
# Left side of ":" is a list of programs, joined by '+'
# Right side of ":" is a list of tests to execute, joined by '+'
# Each test on the right side should appear only once.
# TO DO: add bench-udp once it is improved for 4.1.4.
COMBINATION_TESTS := \
cfdpadmin+ltpcli+owltsim:bench-cfdp/ \
stcpcli:bench-stcp/ \
ltpcli:bench-ltp/ \
bptrace+bpsink+ltpcli:bptrace_terminal_test/ \
bping+bpecho+udpcli:bping/