Skip to content

Commit

Permalink
Add new option f_boot (#1331)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored Mar 18, 2024
1 parent 0f5033b commit 159f06d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions builder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ def _get_board_f_image(env):
return _get_board_f_flash(env)


def _get_board_f_boot(env):
board_config = env.BoardConfig()
if "build.f_boot" in board_config:
return _normalize_frequency(board_config.get("build.f_boot"))

return _get_board_f_flash(env)


def _get_board_flash_mode(env):
if ["arduino"] == env.get("PIOFRAMEWORK") and _get_board_memory_type(env) in (
"opi_opi",
Expand Down Expand Up @@ -238,6 +246,7 @@ def __fetch_fs_size(target, source, env):
__get_board_boot_mode=_get_board_boot_mode,
__get_board_f_flash=_get_board_f_flash,
__get_board_f_image=_get_board_f_image,
__get_board_f_boot=_get_board_f_boot,
__get_board_flash_mode=_get_board_flash_mode,
__get_board_memory_type=_get_board_memory_type,

Expand Down

0 comments on commit 159f06d

Please sign in to comment.