-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathapp_options.mk
95 lines (68 loc) · 2.66 KB
/
app_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
#-----------------------------------------------------------------------------
# Global configuration options
#-----------------------------------------------------------------------------
# Lora Basics Modem path
LORA_BASICS_MODEM := ../lbm_lib/.
# Prefix for all build directories
APPBUILD_ROOT = build
# Prefix for all binaries names
APPTARGET_ROOT = app
# Target board (NUCLEO_L476 or NUCLEO_L073)
BOARD ?= NUCLEO_L476
# Target radio
TARGET_RADIO ?= nc
# Application (PERIODICAL_UPLINK, HW_MODEM, PORTING_TESTS or LCTT_CERTIF)
# Default: PERIODICAL_UPLINK
MODEM_APP ?= nc
# Application region for periodical uplink and lctt certif example (values can be found in smtc_modem_api.h)
# Default in code: SMTC_MODEM_REGION_EU_868 (SMTC_MODEM_REGION_WW2G4 for sx128x)
MODEM_APP_REGION ?= nc
# Allow fuota (take more RAM, due to read_modify_write feature) and force lbm build with fuota
ALLOW_FUOTA ?= no
FUOTA_VERSION ?= 1
# USE LBM Store and forward (take more RAM on STM32L4, due to read_modify_write feature)
ALLOW_STORE_AND_FORWARD ?= no
#TRACE
LBM_TRACE ?= yes
APP_TRACE ?= yes
# LR11xx option to use crc
USE_LR11XX_CRC_SPI ?= no
# Allow relay
ALLOW_RELAY_RX ?= no
ALLOW_RELAY_TX ?= no
#-----------------------------------------------------------------------------
# LBM options management
#-----------------------------------------------------------------------------
# CRYPTO Management
CRYPTO ?= SOFT
# Multistack
# Note: if more than one stack is used, more ram will be used for nvm context saving due to read_modify_write feature
LBM_NB_OF_STACK ?= 1
# Add any lbm build options (ex: LBM_BUILD_OPTIONS ?= LBM_CLASS_B=yes REGION=ALL)
LBM_BUILD_OPTIONS ?= LBM_CSMA=yes USE_CSMA_BY_DEFAULT=yes
#-----------------------------------------------------------------------------
# Optimization
#-----------------------------------------------------------------------------
# Application build optimization
APP_OPT = -Os
# Lora Basics Modem build optimization
LBM_OPT = -Os
#-----------------------------------------------------------------------------
# Debug
#-----------------------------------------------------------------------------
# Compile library and application with debug symbols
APP_DEBUG ?= no
# Debug optimization (will overwrite APP_OPT and LBM_OPT values in case DEBUG is set)
DEBUG_APP_OPT ?= -O0
DEBUG_LBM_OPT ?= -O0
#-----------------------------------------------------------------------------
# Makefile Configuration options
#-----------------------------------------------------------------------------
# Use multithreaded build (make -j)
MULTITHREAD ?= yes
# Print each object file size
SIZE ?= no
# Save memory usage to log file
LOG_MEM ?= yes
# Verbosity
VERBOSE ?= no