Skip to content

Commit 9d83bc8

Browse files
authored
Merge pull request #10911 from tannewt/warn_on_autogen_mismatch
Relax Zephyr CI autogen check
2 parents de1896b + b4e21d1 commit 9d83bc8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ports/zephyr-cp/cptools/build_circuitpython.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -522,16 +522,15 @@ async def build_circuitpython():
522522
hal_source.extend(top.glob(f"shared-bindings/{module.name}/*.c"))
523523

524524
if os.environ.get("CI", "false") == "true":
525-
# Fail the build if it isn't up to date.
525+
# Warn if it isn't up to date.
526526
if (
527527
not autogen_board_info_fn.exists()
528528
or autogen_board_info_fn.read_text() != tomlkit.dumps(autogen_board_info)
529529
):
530-
logger.error("autogen_board_info.toml is out of date.")
531-
raise RuntimeError(
530+
logger.warning(
532531
f"autogen_board_info.toml is missing or out of date. Please run `make BOARD={board}` locally and commit {autogen_board_info_fn}."
533532
)
534-
elif autogen_board_info_fn.parent.exists():
533+
if autogen_board_info_fn.parent.exists():
535534
autogen_board_info_fn.write_text(tomlkit.dumps(autogen_board_info))
536535

537536
for mpflag in MPCONFIG_FLAGS:

0 commit comments

Comments
 (0)