[esp32] Add engineering_sample option for ESP32-P4 (#14139)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jonathan Swoboda
2026-02-20 11:20:05 -05:00
committed by GitHub
parent b0a35559b3
commit 9ce01fc369
4 changed files with 58 additions and 6 deletions
+13 -2
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("}")