Skip to content

Commit b17599b

Browse files
committed
Fix the CI platformio.ini as well
1 parent 277e3b6 commit b17599b

1 file changed

Lines changed: 125 additions & 24 deletions

File tree

ci/platformio-esp32dev.ini

Lines changed: 125 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,142 @@
11
; PlatformIO Project Configuration File
22
;
3-
; Build options: build flags, source filter
4-
; Upload options: custom upload port, speed and extra flags
5-
; Library options: dependencies, extra library storages
6-
; Advanced options: extra scripting
7-
;
83
; Please visit documentation for the other options and examples
94
; https://docs.platformio.org/page/projectconf.html
105

116
[platformio]
12-
default_envs =
13-
esp32dev
7+
default_envs = halmet
148

159
[env]
16-
; Global data for all [env:***]
17-
framework = arduino
18-
lib_ldf_mode = deep
10+
11+
upload_speed = 2000000
1912
monitor_speed = 115200
13+
2014
lib_deps =
2115
${PROJDIR}
2216

23-
[espressif32_base]
24-
;this section has config items common to all ESP32 boards
25-
platform = espressif32
26-
build_unflags = -Werror=reorder
17+
build_flags =
18+
; Max (and default) debugging level in Arduino ESP32 Core
19+
-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE
20+
; Use the ESP-IDF logging library - required by SensESP.
21+
-D USE_ESP_IDF_LOG
22+
2723
board_build.partitions = min_spiffs.csv
24+
25+
;; Uncomment the following lines to use Over-the-air (OTA) Updates
26+
;upload_protocol = espota
27+
;upload_port = IP_ADDRESS_OF_ESP_HERE
28+
;upload_flags =
29+
; --auth=YOUR_OTA_PASSWORD
30+
31+
; You shouldn't need to touch the settings in this section below this line.
32+
33+
build_unflags =
34+
-Werror=reorder
2835
monitor_filters = esp32_exception_decoder
2936

30-
[env:esp32dev]
31-
extends = espressif32_base
37+
test_build_src = true
38+
check_tool = clangtidy
39+
check_flags =
40+
clangtidy: --fix --format-style=file --config-file=.clang-tidy
41+
42+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
43+
; Platform configurations follow
44+
45+
[arduino]
46+
47+
platform = espressif32 @ ^6.9.0
48+
framework = arduino
49+
50+
lib_ignore =
51+
esp_websocket_client
52+
53+
build_flags =
54+
${env.build_flags}
55+
; Arduino Core bug workaround: define the log tag for the Arduino
56+
; logging macros.
57+
-D TAG='"Arduino"'
58+
59+
[pioarduino]
60+
61+
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
62+
framework = arduino
63+
64+
; The library.json format doesn't support dependencies conditional on the
65+
; platform version, so we have to use the lib_deps option to specify the
66+
; esp_websocket_client library only for the ESP-IDF framework.
67+
68+
lib_deps =
69+
${env.lib_deps}
70+
esp_websocket_client=https://components.espressif.com/api/downloads/?object_type=component&object_id=dbc87006-9a4b-45e6-a6ab-b286174cb413
71+
72+
build_flags =
73+
${env.build_flags}
74+
75+
[espidf]
76+
77+
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
78+
framework = espidf, arduino
79+
80+
board_build.embed_txtfiles =
81+
managed_components/espressif__esp_insights/server_certs/https_server.crt
82+
managed_components/espressif__esp_rainmaker/server_certs/rmaker_mqtt_server.crt
83+
managed_components/espressif__esp_rainmaker/server_certs/rmaker_claim_service_server.crt
84+
managed_components/espressif__esp_rainmaker/server_certs/rmaker_ota_server.crt
85+
86+
; The library.json format doesn't support dependencies conditional on the
87+
; platform version, so we have to use the lib_deps option to specify the
88+
; esp_websocket_client library only for the ESP-IDF framework.
89+
90+
lib_deps =
91+
${env.lib_deps}
92+
esp_websocket_client=https://components.espressif.com/api/downloads/?object_type=component&object_id=dbc87006-9a4b-45e6-a6ab-b286174cb413
93+
94+
build_flags =
95+
${env.build_flags}
96+
97+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
98+
; Board configurations follow
99+
100+
[esp32]
101+
32102
board = esp32dev
33103
build_flags =
34-
-D LED_BUILTIN=2
35-
; Max (and default) debugging level in Arduino ESP32 Core
36-
-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE
37-
; Arduino Core bug workaround: define the log tag for the Arduino
38-
; logging macros.
39-
-D TAG='"Arduino"'
40-
; Use the ESP-IDF logging library - required by SensESP.
41-
-D USE_ESP_IDF_LOG
104+
${env.build_flags}
105+
-D BUTTON_BUILTIN=0
106+
-D LED_BUILTIN=2
107+
108+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
109+
; Permutations of platform and device.
110+
111+
[env:arduino_esp32]
112+
113+
extends = arduino, esp32
114+
build_flags =
115+
${arduino.build_flags}
116+
${esp32.build_flags}
117+
118+
[env:pioarduino_esp32]
119+
120+
extends = pioarduino, esp32
121+
build_flags =
122+
${pioarduino.build_flags}
123+
${esp32.build_flags}
124+
125+
[env:espidf_esp32]
126+
127+
extends = espidf, esp32
128+
build_flags =
129+
${espidf.build_flags}
130+
${esp32.build_flags}
131+
132+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
133+
; Individual board configurations
134+
135+
[env:halmet]
136+
137+
extends = pioarduino, esp32
138+
board_build.partitions = default_8MB.csv
139+
140+
build_flags =
141+
${pioarduino.build_flags}
142+
${esp32.build_flags}

0 commit comments

Comments
 (0)