Merge branch 'fix_logger_loop_disable' into integration

This commit is contained in:
J. Nick Koston
2026-02-20 13:21:08 -06:00
14 changed files with 137 additions and 20 deletions

View File

@@ -43,10 +43,14 @@ def get_boards():
name = board_info["name"]
board = fname.stem
variant = mcu.upper()
boards[board] = {
chip_variant = board_info["build"].get("chip_variant", "")
entry = {
"name": name,
"variant": f"VARIANT_{variant}",
}
if chip_variant.endswith("_es"):
entry["engineering_sample"] = True
boards[board] = entry
return boards
@@ -55,6 +59,12 @@ TEMPLATE = """ "%s": {
"variant": %s,
},"""
TEMPLATE_ES = """ "%s": {
"name": "%s",
"variant": %s,
"engineering_sample": True,
},"""
def main(check: bool):
boards = get_boards()
@@ -66,7 +76,8 @@ def main(check: bool):
if line == "BOARDS = {":
parts.append(line)
parts.extend(
TEMPLATE % (board, info["name"], info["variant"])
(TEMPLATE_ES if info.get("engineering_sample") else TEMPLATE)
% (board, info["name"], info["variant"])
for board, info in sorted(boards.items())
)
parts.append("}")