Skip to content

Commit fd14be2

Browse files
Do not use precompiled sketches for newer boards
1 parent fe31ef7 commit fd14be2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

generator/generator.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,10 @@ def generate_boards_json(input_data, arduino_cli_path):
245245
"arduino:renesas_uno:unor4wifi": {"fqbn": "arduino:renesas_uno:unor4wifi", "firmware": []},
246246
}
247247

248+
# List of boards that do not need precompiled sketch data.
249+
# It will be removed when precompiled sketches will no longer be part of the standard procedure
250+
skip_precomp = ["arduino:renesas_uno:unor4wifi"]
251+
248252
# Gets the installed cores
249253
res = arduino_cli(cli_path=arduino_cli_path, args=["core", "list", "--format", "json"])
250254
installed_cores = {c["id"]: c for c in json.loads(res)}
@@ -260,8 +264,9 @@ def generate_boards_json(input_data, arduino_cli_path):
260264
for fqbn, data in input_data.items():
261265
simple_fqbn = fqbn.replace(":", ".")
262266

263-
boards[fqbn]["loader_sketch"] = create_precomp_sketch_data(simple_fqbn, "loader")
264-
boards[fqbn]["version_sketch"] = create_precomp_sketch_data(simple_fqbn, "getversion")
267+
if fqbn not in skip_precomp:
268+
boards[fqbn]["loader_sketch"] = create_precomp_sketch_data(simple_fqbn, "loader")
269+
boards[fqbn]["version_sketch"] = create_precomp_sketch_data(simple_fqbn, "getversion")
265270

266271
for firmware_version in data["versions"]:
267272
module = data["moduleName"]

0 commit comments

Comments
 (0)