forked from crosspoint-reader/crosspoint-reader
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatformio.ini
More file actions
196 lines (178 loc) · 5.3 KB
/
Copy pathplatformio.ini
File metadata and controls
196 lines (178 loc) · 5.3 KB
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
[platformio]
default_envs = default
build_cache_dir = .cache
extra_configs = platformio.local.ini
[crosspoint]
version = 1.1.3
[base]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.37/platform-espressif32.zip
board = esp32-c3-devkitm-1
framework = arduino
monitor_speed = 115200
upload_speed = 921600
check_tool = cppcheck
check_flags = --enable=all --suppress=missingIncludeSystem --suppress=unusedFunction --suppress=unmatchedSuppression --suppress=*:*/.pio/* --inline-suppr
check_skip_packages = yes
board_upload.flash_size = 16MB
board_upload.maximum_size = 6553600
board_upload.offset_address = 0x10000
build_flags =
-DARDUINO_USB_MODE=1
-DARDUINO_USB_CDC_ON_BOOT=1
-DEINK_DISPLAY_SINGLE_BUFFER_MODE=1
-DDISABLE_FS_H_WARNING=1
-DDESTRUCTOR_CLOSES_FILE=1
# https://libexpat.github.io/doc/api/latest/#XML_GE
-DXML_GE=0
-DXML_CONTEXT_BYTES=1024
-std=gnu++2a
# Enable UTF-8 long file names in SdFat
-DUSE_UTF8_LONG_NAMES=1
# Increase PNG scanline buffer to support up to 2048px wide images
# Default is (320*4+1)*2=2562, we need more for larger images
-DPNG_MAX_BUFFERED_PIXELS=16416
-DFREEINK_DEVICE_X4=1
-DFREEINK_DEVICE_X3=1
-DFREEINK_NET_WOLFSSL=1
-DWOLFSSL_USER_SETTINGS
-DWOLFSSL_OPTIONS_H
-DWOLFSSL_CLIENT_EXAMPLE
-DWOLFSSL_TLS13
-DWOLFSSL_HAVE_SP_ECC
-DWOLFSSL_SP_SMALL
-DHAVE_FFDHE_2048
-DHAVE_CURVE25519
-DHAVE_SNI
-Wno-bidi-chars
-Wl,--wrap=panic_print_backtrace,--wrap=panic_abort,--wrap=bootloader_common_check_efuse_blk_validity,--wrap=http_utils_append_string
-fno-exceptions
build_unflags =
-std=gnu++11
-fexceptions
; Board configuration
board_build.flash_mode = dio
board_build.flash_size = 16MB
board_build.partitions = partitions.csv
extra_scripts =
pre:scripts/patch_wolfssl.py
pre:scripts/build_html.py
pre:scripts/gen_i18n.py
pre:scripts/git_branch.py
pre:scripts/patch_jpegdec.py
post:scripts/register_unit_tests_target.py
; Libraries
lib_deps =
BatteryMonitor=symlink://freeink-sdk/libs/hardware/BatteryMonitor
InputManager=symlink://freeink-sdk/libs/hardware/InputManager
EInkDisplay=symlink://freeink-sdk/libs/display/FreeInkDisplay
SDCardManager=symlink://freeink-sdk/libs/hardware/SDCardManager
BoardConfig=symlink://freeink-sdk/libs/hardware/BoardConfig
XteinkDetect=symlink://freeink-sdk/libs/hardware/XteinkDetect
PowerManager=symlink://freeink-sdk/libs/hardware/PowerManager
Rtc=symlink://freeink-sdk/libs/hardware/Rtc
Imu=symlink://freeink-sdk/libs/hardware/Imu
SecureNet=symlink://freeink-sdk/libs/network/SecureNet
FreeInkUI=symlink://freeink-sdk/libs/ui/FreeInkUI
Icons=symlink://freeink-sdk/libs/assets/Icons
bblanchon/ArduinoJson @ 7.4.2
ricmoo/QRCode @ 0.0.1
bitbank2/PNGdec @ 1.1.6
https://github.com/bitbank2/JPEGDEC.git#86282979224c8a32fd51e091ed5a35b0c699a52b
wolfssl/Arduino-wolfSSL @ 5.7.2
lib_ignore =
BLE
[env:default]
extends = base
build_flags =
${base.build_flags}
-DENABLE_SERIAL_LOG
-DLOG_LEVEL=2 ; Set log level to debug for development builds
; Development-only firmware that materializes missing library thumbnails and
; logs each cover-processing stage. Normal/default builds never do cover
; extraction from the library render loop.
[env:cover_debug]
extends = base
build_flags =
${base.build_flags}
-DENABLE_SERIAL_LOG
-DLOG_LEVEL=2
-DCROSSVI_COVER_DEBUG
[env:gh_release]
extends = base
build_unflags =
${base.build_unflags}
-DARDUINO_USB_CDC_ON_BOOT=1
build_flags =
${base.build_flags}
-DARDUINO_USB_CDC_ON_BOOT=0
; Keep serial diagnostics in the default/cover_debug builds. The published
; release image omits them to preserve app-partition headroom.
-UENABLE_SERIAL_LOG
[env:gh_release_rc]
extends = base
build_unflags =
${base.build_unflags}
-DARDUINO_USB_CDC_ON_BOOT=1
build_flags =
${base.build_flags}
-DARDUINO_USB_CDC_ON_BOOT=0
-UENABLE_SERIAL_LOG
[env:slim]
extends = base
build_flags =
${base.build_flags}
; serial output is disabled in slim builds to save space
-UENABLE_SERIAL_LOG
[simulator]
platform = native
custom_run_simulator_target_owner = project
lib_compat_mode = off
build_src_filter =
+<*>
-<network/CrossPointWebServer.cpp>
-<network/FirmwareFlasher.cpp>
-<network/OtaBootSwitch.cpp>
-<network/OtaUpdater.cpp>
-<network/WebDAVHandler.cpp>
-<platform/skip_efuse_blk_check.c>
build_flags =
-std=gnu++2a
!python3 scripts/simulator_build_flags.py
-DSIMULATOR
-DCROSSPOINT_FIRMWARE_VARIANT=\"simulator\"
-DENABLE_SERIAL_LOG
-DLOG_LEVEL=2
-DEINK_DISPLAY_SINGLE_BUFFER_MODE=1
-DMINIZ_NO_ZLIB_COMPATIBLE_NAMES=1
-DXML_GE=0
-DXML_CONTEXT_BYTES=1024
-DUSE_UTF8_LONG_NAMES=1
-DPNG_MAX_BUFFERED_PIXELS=16416
-DDISABLE_FS_H_WARNING=1
-DDESTRUCTOR_CLOSES_FILE=1
-DCROSSPOINT_SIM_USE_NATIVE_DECODERS
-Dmemcpy_P=memcpy
-Isrc
-Isimulator/src
-Ilib/hal
-Wno-deprecated-declarations
-Wno-narrowing
lib_ignore = hal
extra_scripts =
pre:scripts/gen_i18n.py
pre:scripts/git_branch.py
pre:scripts/build_html.py
post:simulator/run_simulator_project.py
lib_deps =
simulator=symlink://simulator
bblanchon/ArduinoJson @ 7.4.2
ricmoo/QRCode @ 0.0.1
bitbank2/PNGdec @ 1.1.6
https://github.com/bitbank2/JPEGDEC.git#86282979224c8a32fd51e091ed5a35b0c699a52b
[env:simulator_x4]
extends = simulator
[env:simulator_x3]
extends = simulator
build_flags =
${simulator.build_flags}
-DSIMULATOR_DEVICE_X3