Skip to content

Commit 297d5ce

Browse files
committed
Use esp32_idf_V4.build_flags and esp32_idf_V4.lib_deps for all V4 builds
1 parent 3f90366 commit 297d5ce

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

platformio.ini

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -306,10 +306,9 @@ build_flags = -g
306306
-DARDUINO_USB_MODE=0 ;; this flag is mandatory for ESP32-S2 !
307307
;; please make sure that the following flags are properly set (to 0 or 1) by your board.json, or included in your custom platformio_override.ini entry:
308308
;; ARDUINO_USB_CDC_ON_BOOT
309-
${esp32_all_variants.build_flags}
309+
${esp32_idf_V4.build_flags}
310310
lib_deps =
311-
${esp32_all_variants.lib_deps}
312-
${env.lib_deps}
311+
${esp32_idf_V4.lib_deps}
313312
board_build.partitions = ${esp32.default_partitions} ;; default partioning for 4MB Flash - can be overridden in build envs
314313

315314
[esp32c3]
@@ -324,10 +323,9 @@ build_flags = -g
324323
-DARDUINO_USB_MODE=1 ;; this flag is mandatory for ESP32-C3
325324
;; please make sure that the following flags are properly set (to 0 or 1) by your board.json, or included in your custom platformio_override.ini entry:
326325
;; ARDUINO_USB_CDC_ON_BOOT
327-
${esp32_all_variants.build_flags}
326+
${esp32_idf_V4.build_flags}
328327
lib_deps =
329-
${esp32_all_variants.lib_deps}
330-
${env.lib_deps}
328+
${esp32_idf_V4.lib_deps}
331329
board_build.partitions = ${esp32.default_partitions} ;; default partioning for 4MB Flash - can be overridden in build envs
332330
board_build.flash_mode = qio
333331

@@ -344,10 +342,9 @@ build_flags = -g
344342
-DCO
345343
;; please make sure that the following flags are properly set (to 0 or 1) by your board.json, or included in your custom platformio_override.ini entry:
346344
;; ARDUINO_USB_MODE, ARDUINO_USB_CDC_ON_BOOT
347-
${esp32_all_variants.build_flags}
345+
${esp32_idf_V4.build_flags}
348346
lib_deps =
349-
${esp32_all_variants.lib_deps}
350-
${env.lib_deps}
347+
${esp32_idf_V4.lib_deps}
351348
board_build.partitions = ${esp32.large_partitions} ;; default partioning for 8MB flash - can be overridden in build envs
352349

353350

0 commit comments

Comments
 (0)