Skip to content

Commit 187235d

Browse files
committed
updates the build script to handle the P4
1 parent dee9875 commit 187235d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

builder/esp32.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def repl_args(extra_args):
235235
action='store'
236236
)
237237

238-
if mcu in ('esp32s3', 'esp32s2', 'esp32c3', 'esp32c6'):
238+
if mcu in ('esp32p4', 'esp32s3', 'esp32s2', 'esp32c3', 'esp32c6'):
239239
esp_argParser.add_argument(
240240
'--enable-cdc-repl',
241241
dest='enable_cdc_repl',
@@ -256,7 +256,7 @@ def repl_args(extra_args):
256256
enable_uart_repl = esp_args.enable_uart_repl
257257
uart_repl_bitrate = esp_args.uart_repl_bitrate
258258

259-
if mcu in ('esp32s3', 'esp32s2', 'esp32c3', 'esp32c6'):
259+
if mcu in ('esp32p4', 'esp32s3', 'esp32s2', 'esp32c3', 'esp32c6'):
260260
enable_cdc_repl = esp_args.enable_cdc_repl
261261
enable_jtag_repl = esp_args.enable_jtag_repl
262262

@@ -317,7 +317,7 @@ def common_args(extra_args):
317317
raise RuntimeError('Board is not currently supported')
318318

319319
if board in (
320-
'UM_NANOS3', 'ESP32_GENERIC_S3',
320+
'UM_NANOS3', 'ESP32_GENERIC_S3', 'ESP32_GENERIC_P4'
321321
'UM_TINYS3', 'UM_TINYWATCHS3'
322322
):
323323
def_flash_size = 8
@@ -484,7 +484,7 @@ def common_args(extra_args):
484484
optimum_fb_size = '0'
485485

486486

487-
def esp32_s3_args(extra_args):
487+
def esp32_s3_p4_args(extra_args):
488488
if custom_board_path is not None:
489489
return extra_args
490490

@@ -566,8 +566,8 @@ def parse_args(extra_args, lv_cflags, brd):
566566

567567
if board == 'ESP32_GENERIC':
568568
extra_args = esp32_args(extra_args)
569-
elif board == 'ESP32_GENERIC_S3':
570-
extra_args = esp32_s3_args(extra_args)
569+
elif board in ('ESP32_GENERIC_S3', 'ESP32_GENERIC_P4'):
570+
extra_args = esp32_s3_p4_args(extra_args)
571571

572572
extra_args = repl_args(extra_args)
573573

0 commit comments

Comments
 (0)