Skip to content

Commit 86ee1c7

Browse files
committed
move nina boards to the plugin system
1 parent b0da76d commit 86ee1c7

File tree

1 file changed

+26
-18
lines changed

1 file changed

+26
-18
lines changed

generator/generator.py

+26-18
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,12 @@
3030
def create_boards_dictionary(new):
3131
boards = {
3232
"arduino:samd:mkr1000": {"fqbn": "arduino:samd:mkr1000", "firmware": []},
33-
"arduino:samd:mkrwifi1010": {
34-
"fqbn": "arduino:samd:mkrwifi1010",
35-
"firmware": [],
36-
},
37-
"arduino:samd:nano_33_iot": {
38-
"fqbn": "arduino:samd:nano_33_iot",
39-
"firmware": [],
40-
},
4133
"arduino:samd:mkrvidor4000": {
4234
"fqbn": "arduino:samd:mkrvidor4000",
4335
"firmware": [],
44-
},
45-
"arduino:megaavr:uno2018": {"fqbn": "arduino:megaavr:uno2018", "firmware": []},
46-
"arduino:mbed_nano:nanorp2040connect": {
47-
"fqbn": "arduino:mbed_nano:nanorp2040connect",
48-
"firmware": [],
49-
},
36+
}
5037
}
38+
# the boards that support the plugin system (the ones present in the new_boards.json file)
5139
if new:
5240
boards = {
5341
"arduino:renesas_uno:unor4wifi": {
@@ -58,6 +46,30 @@ def create_boards_dictionary(new):
5846
"uploader_plugin": "arduino:[email protected]",
5947
"additional_tools": ["arduino:[email protected]", "arduino:[email protected]"],
6048
},
49+
"arduino:samd:mkrwifi1010": {
50+
"fqbn": "arduino:samd:mkrwifi1010",
51+
"firmware": [],
52+
"uploader_plugin": "arduino:[email protected]",
53+
"additional_tools": ["arduino:[email protected]"],
54+
},
55+
"arduino:samd:nano_33_iot": {
56+
"fqbn": "arduino:samd:nano_33_iot",
57+
"firmware": [],
58+
"uploader_plugin": "arduino:[email protected]",
59+
"additional_tools": ["arduino:[email protected]"],
60+
},
61+
"arduino:megaavr:uno2018": {
62+
"fqbn": "arduino:megaavr:uno2018",
63+
"firmware": [],
64+
"uploader_plugin": "arduino:[email protected]",
65+
"additional_tools": ["arduino:[email protected]"],
66+
},
67+
"arduino:mbed_nano:nanorp2040connect": {
68+
"fqbn": "arduino:mbed_nano:nanorp2040connect",
69+
"firmware": [],
70+
"uploader_plugin": "arduino:[email protected]",
71+
"additional_tools": ["arduino:[email protected]"],
72+
},
6173
}
6274
return boards
6375

@@ -262,11 +274,7 @@ def generate_boards_json(input_data, arduino_cli_path, new_boards):
262274
# List of old boards that need precompiled sketch data and uploader information obtained through platform.txt.
263275
old_boards = [
264276
"arduino:samd:mkr1000",
265-
"arduino:samd:mkrwifi1010",
266-
"arduino:samd:nano_33_iot",
267277
"arduino:samd:mkrvidor4000",
268-
"arduino:megaavr:uno2018",
269-
"arduino:mbed_nano:nanorp2040connect",
270278
]
271279

272280
boards = create_boards_dictionary(new_boards)

0 commit comments

Comments
 (0)