Skip to content

Commit 159f06d

Browse files
authored
Add new option f_boot (#1331)
1 parent 0f5033b commit 159f06d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

builder/main.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@ def _get_board_f_image(env):
7777
return _get_board_f_flash(env)
7878

7979

80+
def _get_board_f_boot(env):
81+
board_config = env.BoardConfig()
82+
if "build.f_boot" in board_config:
83+
return _normalize_frequency(board_config.get("build.f_boot"))
84+
85+
return _get_board_f_flash(env)
86+
87+
8088
def _get_board_flash_mode(env):
8189
if ["arduino"] == env.get("PIOFRAMEWORK") and _get_board_memory_type(env) in (
8290
"opi_opi",
@@ -238,6 +246,7 @@ def __fetch_fs_size(target, source, env):
238246
__get_board_boot_mode=_get_board_boot_mode,
239247
__get_board_f_flash=_get_board_f_flash,
240248
__get_board_f_image=_get_board_f_image,
249+
__get_board_f_boot=_get_board_f_boot,
241250
__get_board_flash_mode=_get_board_flash_mode,
242251
__get_board_memory_type=_get_board_memory_type,
243252

0 commit comments

Comments
 (0)