forked from letscontrolit/ESPEasy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio_esp82xx_base.ini
280 lines (215 loc) · 10.6 KB
/
platformio_esp82xx_base.ini
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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
;;; ESP82xx base definitions*******************************************
; Basic definitions used in ESP82xx environments ;
; *********************************************************************
[regular_platform]
build_unflags =
build_flags = ${core_2_7_4.build_flags}
platform = ${core_2_7_4.platform}
platform_packages = ${core_2_7_4.platform_packages}
lib_ignore = ${core_2_7_4.lib_ignore}
[regular_platform_alt_wifi]
build_unflags =
build_flags = ${core_2_7_4_alt_wifi.build_flags}
platform = ${core_2_7_4_alt_wifi.platform}
platform_packages = ${core_2_7_4_alt_wifi.platform_packages}
lib_ignore = ${core_2_7_4_alt_wifi.lib_ignore}
[core262_sdk3_platform]
build_unflags =
build_flags = ${core_2_7_4_sdk3.build_flags}
platform = ${core_2_7_4_sdk3.platform}
platform_packages = ${core_2_7_4_sdk3.platform_packages}
lib_ignore = ${core_2_7_4_sdk3.lib_ignore}
[beta_platform]
build_unflags =
build_flags = ${core_stage.build_flags}
platform = ${core_stage.platform}
platform_packages = ${core_stage.platform_packages}
lib_ignore = ${core_stage.lib_ignore}
[no_ir]
lib_ignore = IRremoteESP8266, HeatpumpIR
[no_sd]
lib_ignore = SD(esp8266), SDFS
[no_littlefs]
lib_ignore = LittleFS(esp8266)
[generic_build]
lib_ignore = ${no_ir.lib_ignore}, ${no_sd.lib_ignore}, ${no_littlefs.lib_ignore}
[esp82xx_common]
extends = common
board_build.f_cpu = 80000000L
build_flags = ${debug_flags.build_flags} ${mqtt_flags.build_flags} -DHTTPCLIENT_1_1_COMPATIBLE=0
build_unflags = -DDEBUG_ESP_PORT
lib_deps = https://github.com/TD-er/ESPEasySerial.git#v2.0.3, Adafruit ILI9341, Adafruit GFX Library, LOLIN_EPD, Adafruit BusIO
lib_ignore = ${esp82xx_defaults.lib_ignore}, IRremoteESP8266, HeatpumpIR, SD(esp8266), SDFS, LittleFS(esp8266)
board = esp12e
monitor_filters = esp8266_exception_decoder
;;; NORMAL (STABLE) ***************************************************
; normal version with stable plugins ;
; *********************************************************************
[normal]
platform = ${regular_platform.platform}
platform_packages = ${regular_platform.platform_packages}
build_flags = ${regular_platform.build_flags}
lib_ignore = ${regular_platform.lib_ignore}
[normal_alt_wifi]
platform = ${regular_platform_alt_wifi.platform}
platform_packages = ${regular_platform_alt_wifi.platform_packages}
build_flags = ${regular_platform_alt_wifi.build_flags}
lib_ignore = ${regular_platform_alt_wifi.lib_ignore}
[normal_beta]
platform = ${beta_platform.platform}
platform_packages = ${beta_platform.platform_packages}
build_flags = ${beta_platform.build_flags}
lib_ignore = ${beta_platform.lib_ignore}
;;; TEST *************************************************************
; additional plugins (and dependend code) that is marked as TESTING ;
; Includes "normal" + "testing" plugins ;
; *********************************************************************
[testing]
platform = ${regular_platform.platform}
platform_packages = ${regular_platform.platform_packages}
build_flags = ${regular_platform.build_flags} -DPLUGIN_BUILD_TESTING
lib_ignore = ${regular_platform.lib_ignore}
[testing_alt_wifi]
platform = ${regular_platform_alt_wifi.platform}
platform_packages = ${regular_platform_alt_wifi.platform_packages}
build_flags = ${regular_platform_alt_wifi.build_flags} -DPLUGIN_BUILD_TESTING
lib_ignore = ${regular_platform_alt_wifi.lib_ignore}
[testing_beta]
platform = ${beta_platform.platform}
platform_packages = ${beta_platform.platform_packages}
build_flags = ${beta_platform.build_flags} -DPLUGIN_BUILD_TESTING
lib_ignore = ${beta_platform.lib_ignore}
;;; DEV **************************************************************
; additional plugins (and dependend code) that is in development ;
; (probably broken or incomplete) ;
; *********************************************************************
[dev]
platform = ${regular_platform.platform}
platform_packages = ${regular_platform.platform_packages}
build_flags = ${regular_platform.build_flags} -DPLUGIN_BUILD_DEV
lib_ignore = ${regular_platform.lib_ignore}
[dev_alt_wifi]
platform = ${regular_platform_alt_wifi.platform}
platform_packages = ${regular_platform_alt_wifi.platform_packages}
build_flags = ${regular_platform_alt_wifi.build_flags} -DPLUGIN_BUILD_DEV
lib_ignore = ${regular_platform_alt_wifi.lib_ignore}
;;; IR ***********************************************************
; IR builds ;
; *********************************************************************
[ir]
platform = ${regular_platform.platform}
platform_packages = ${regular_platform.platform_packages}
build_flags = ${regular_platform.build_flags}
lib_ignore = ${esp82xx_defaults.lib_ignore}, SD(esp8266), SDFS, LittleFS(esp8266)
[ir_alt_wifi]
platform = ${regular_platform_alt_wifi.platform}
platform_packages = ${regular_platform_alt_wifi.platform_packages}
build_flags = ${regular_platform_alt_wifi.build_flags}
lib_ignore = ${esp82xx_defaults.lib_ignore}, SD(esp8266), SDFS, LittleFS(esp8266)
[minimal_ir]
extends = ir
build_flags = ${ir.build_flags} -DPLUGIN_BUILD_MINIMAL_IR
[minimal_ir_extended]
extends = ir
build_flags = ${ir.build_flags} -DPLUGIN_BUILD_MINIMAL_IRext
[normal_ir]
extends = ir
build_flags = ${ir.build_flags} -DPLUGIN_BUILD_NORMAL_IR
[normal_ir_extended]
extends = ir
build_flags = ${ir.build_flags} -DPLUGIN_BUILD_IR_EXTENDED
[normal_ir_extended_no_rx]
extends = ir
build_flags = ${ir.build_flags} -DPLUGIN_BUILD_IR_EXTENDED_NO_RX
;;; 1MB flash nodes **************************************************
; Layout for 1M flash nodes ;
; *********************************************************************
[esp82xx_1M]
extends = esp82xx_common
board_build.flash_mode = dout
board_upload.maximum_size = 786432
board_build.ldscript = eagle.flash.1m128.ld
build_flags = -DSIZE_1M
-DBUILD_NO_DEBUG
-Os
-s
${esp82xx_common.build_flags}
[esp8266_1M]
extends = esp82xx_1M
board = esp01_1m
[esp8285_1M]
extends = esp82xx_1M
board = esp8285
build_flags = ${esp8266_1M.build_flags} -DESP8285
;;; Minimal ***********************************************************
; Minimal build size for OTA ;
; *********************************************************************
[esp82xx_1M_OTA]
extends = esp82xx_1M
board_build.flash_mode = dout
board_upload.maximum_size = 616448
build_flags = ${esp82xx_1M.build_flags} -DPLUGIN_BUILD_MINIMAL_OTA
lib_deps =
[esp8266_1M_OTA]
extends = esp82xx_1M_OTA
board = esp01_1m
[esp8285_1M_OTA]
extends = esp82xx_1M_OTA
board = esp8285
build_flags = ${esp82xx_1M_OTA.build_flags} -DESP8285
;;; 2MB flash nodes **************************************************
; Layout for 2M flash nodes ;
; *********************************************************************
[esp8266_2M256]
extends = esp82xx_common
board = esp12e
board_build.flash_mode = dout
board_upload.maximum_size = 1044464
board_build.ldscript = eagle.flash.2m256.ld
build_flags = ${esp82xx_common.build_flags}
[espWroom2M]
extends = esp82xx_common
board = esp12e
board_build.flash_mode = dout
board_upload.maximum_size = 1044464
board_build.ldscript = eagle.flash.2m.ld
build_flags = ${esp82xx_common.build_flags}
[espWroom2M256]
extends = esp82xx_common
board_build.flash_mode = dout
board_upload.maximum_size = 1044464
board = esp_wroom_02
board_build.ldscript = eagle.flash.2m256.ld
build_flags = ${esp82xx_common.build_flags}
;;; 4MB flash nodes **************************************************
; Layout for 4M flash nodes ;
; *********************************************************************
[esp8266_4M1M]
extends = esp82xx_common
board = esp12e
board_build.flash_mode = dout
board_upload.maximum_size = 1044464
board_build.ldscript = eagle.flash.4m1m.ld
build_flags = ${esp82xx_common.build_flags}
[esp8266_4M2M]
extends = esp82xx_common
board = esp12e
board_build.flash_mode = dout
board_upload.maximum_size = 1044464
board_build.ldscript = eagle.flash.4m2m.ld
build_flags = ${esp82xx_common.build_flags}
;;; 16MB flash nodes *************************************************
; Layout for 16M flash nodes ;
; *********************************************************************
; Configuration for the Wemos D1 mini pro (16M)
; This configuration can only be used with core versions 2.5.0 or newer.
; Performance of 14M SPIFFS is really slow.
; See https://github.com/esp8266/Arduino/issues/5932
[esp8266_16M]
extends = esp82xx_common
board = esp12e
board_build.flash_mode = dout
board_upload.maximum_size = 1044464
board_build.ldscript = eagle.flash.16m14m.ld
build_flags = -DSPIFFS_MAX_OPEN_FILES=20
${esp82xx_common.build_flags}