-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathoptions.mk
133 lines (98 loc) · 3.79 KB
/
options.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
#-----------------------------------------------------------------------------
# Global configuration options
#-----------------------------------------------------------------------------
# Tranceiver
RADIO ?= nc
# MCU - Must be provided by user
MCU_FLAGS ?= nc
# Prefix for all build directories
BUILD_ROOT = build
# Prefix for all binaries names
TARGET_ROOT = basic_modem
# External flags if needed
EXTRAFLAGS ?=
#-----------------------------------------------------------------------------
# Optimization
#-----------------------------------------------------------------------------
# Compilation optimization
OPT ?= -Os
#-----------------------------------------------------------------------------
# Debug
#-----------------------------------------------------------------------------
# Compile for debugging
DEBUG ?= no
# Debug optimization (will overwrite OPT value in case DEBUG is set)
DEBUG_OPT ?= -O0
#-----------------------------------------------------------------------------
# Makefile Configuration options
#-----------------------------------------------------------------------------
# Use multithreaded build (make -j)
MULTITHREAD ?= yes
# Print each object file size
SIZE ?= no
# Verbosity
VERBOSE ?= no
#-----------------------------------------------------------------------------
# Internal LBM features management
#-----------------------------------------------------------------------------
# Trace prints
MODEM_TRACE ?= yes
MODEM_DEEP_TRACE ?= no
# LoRaWAN regions: ALL to build all available regions, otherwise regions can be added with a comma separator (ex EU_868,US_915)
# If radio target is sx128x WW_2G4 is forced
REGION ?= ALL
# Crypto management only for lr11xx targets (SOFT, LR11XX, LR11XX_WITH_CREDENTIALS )
CRYPTO ?= SOFT
#-----------------------------------------------------------------------------
# LoRaWAN Stack related options
#-----------------------------------------------------------------------------
# class b feature
LBM_CLASS_B ?= no
# class c feature
LBM_CLASS_C ?= no
# Multicast feature (at leastclass B or class C shall be activated)
LBM_MULTICAST ?= no
# CSMA Feature ( only usable for lr11xx and sx126x targets)
LBM_CSMA ?= no
USE_CSMA_BY_DEFAULT ?= no
#-----------------------------------------------------------------------------
# LoRaWAN Package related options
#-----------------------------------------------------------------------------
# ALCSYNC feature (these options are only taken in count if LBM_FUOTA is disabled)
LBM_ALC_SYNC ?= no
# ALCSYNC Package version: 1 for v1.0.0 and 2 for v2.0.0
LBM_ALC_SYNC_VERSION ?= 1
# Fuota feature (this will automatically enable class b, class c, multicast and ALCSync)
LBM_FUOTA ?= no
LBM_FUOTA_VERSION ?= 1
FUOTA_MAXIMUM_NB_OF_FRAGMENTS ?= nc
FUOTA_MAXIMUM_SIZE_OF_FRAGMENTS ?= nc
FUOTA_MAXIMUM_FRAG_REDUNDANCY ?= nc
# In case FUOTA is allowed, allow the use of Firmware Management Package
LBM_FUOTA_ENABLE_FMP ?= yes
# In case FUOTA is allowed, llow the use of Multi-Package Access Package
LBM_FUOTA_ENABLE_MPA ?= yes
#-----------------------------------------------------------------------------
# LoRaCloud related options
#-----------------------------------------------------------------------------
# Almanac update feature (only applicable for lr1110 and lr1120 targets)
LBM_ALMANAC ?= no
# Stream feature
LBM_STREAM ?= no
# Large File Upload feature
LBM_LFU ?= no
# Cloud Device Management feature
LBM_DEVICE_MANAGEMENT ?= no
#-----------------------------------------------------------------------------
# Miscellaneous options
#-----------------------------------------------------------------------------
# Geolocation feature
LBM_GEOLOCATION ?= no
#Store and Forward Management feature
LBM_STORE_AND_FORWARD ?= no
# Multistack
NB_OF_STACK ?= 1
# Relay Tx
LBM_RELAY_TX_ENABLE ?= no
# Relay Rx
LBM_RELAY_RX_ENABLE ?= no