Skip to content

Commit 5172372

Browse files
authored
Merge pull request espressif#106 from adafruit/fix-esp32s2-build
Fix ci build with esp32s2 boards
2 parents fa90162 + e4760ab commit 5172372

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Diff for: build_platform.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ def install_platform(platform):
168168
ColorPrint.print_fail("FAILED to install "+platform)
169169
exit(-1)
170170
ColorPrint.print_pass(CHECK)
171+
# print installed core version
172+
print(os.popen('arduino-cli core list | grep {}'.format(platform)).read(), end='')
171173

172174
def run_or_die(cmd, error):
173175
print(cmd)
@@ -311,12 +313,12 @@ def test_examples_in_folder(folderpath):
311313

312314
if BUILD_WARN:
313315
if os.path.exists(gen_file_name):
314-
cmd = ['arduino-cli', 'compile', '--warnings', 'all', '--fqbn', fqbn, '-e', examplepath]
316+
cmd = ['arduino-cli', 'compile', '--warnings', 'all', '--fqbn', fqbn, '-e', folderpath]
315317
else:
316-
cmd = ['arduino-cli', 'compile', '--warnings', 'all', '--fqbn', fqbn, examplepath]
318+
cmd = ['arduino-cli', 'compile', '--warnings', 'all', '--fqbn', fqbn, folderpath]
317319
else:
318-
cmd = ['arduino-cli', 'compile', '--warnings', 'none', '--export-binaries', '--fqbn', fqbn, examplepath]
319-
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
320+
cmd = ['arduino-cli', 'compile', '--warnings', 'none', '--export-binaries', '--fqbn', fqbn, folderpath]
321+
proc = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE,
320322
stderr=subprocess.PIPE)
321323
r = proc.wait(timeout=60)
322324
out = proc.stdout.read()

0 commit comments

Comments
 (0)