Skip to content

Commit 422fde9

Browse files
committed
[CI] Add url option
Allow to change the default url for the board manager Signed-off-by: Frederic Pillon <[email protected]>
1 parent 011addb commit 422fde9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

CI/build/arduino-cli.py

+11
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ def check_config():
161161
global root_output_dir
162162
global output_dir
163163
global log_file
164+
global stm32_url
165+
164166
if args.ci is False:
165167
if os.path.isfile(path_config_filename):
166168
try:
@@ -215,6 +217,9 @@ def check_config():
215217
+ arduino_cli_default_version
216218
)
217219

220+
if args.url:
221+
stm32_url = args.url
222+
218223
try:
219224
output = subprocess.check_output(
220225
[arduino_cli, "core", "search", "stm32", "--additional-urls", stm32_url],
@@ -874,6 +879,12 @@ def build(build_conf):
874879
+ cores_config_file_default,
875880
)
876881

882+
parser.add_argument(
883+
"-u", "--url", metavar="<string>", help="additional URL for the board manager\
884+
Default url : "
885+
+ stm32_url,
886+
)
887+
877888
parser.add_argument(
878889
"-v", "--verbose", help="enable arduino-cli verbose mode", action="store_true"
879890
)

0 commit comments

Comments
 (0)