Browse Source

Tools: fixed board selection in build_binaries.py

master
Andrew Tridgell 6 years ago
parent
commit
57ab496a1c
  1. 7
      Tools/scripts/build_binaries.py

7
Tools/scripts/build_binaries.py

@ -150,9 +150,12 @@ is bob we will attempt to checkout bob-AVR''' @@ -150,9 +150,12 @@ is bob we will attempt to checkout bob-AVR'''
try:
out = self.run_program('waf', ['./waf', 'configure', '--board=BOARDTEST'], False)
lines = out.split('\n')
needle = "BOARDTEST' (choose from"
needles = ["BOARDTEST' (choose from", "BOARDTEST': choices are"]
for line in lines:
idx = line.find(needle)
for needle in needles:
idx = line.find(needle)
if idx != -1:
break
if idx != -1:
line = line[idx+len(needle):-1]
line = line.replace("'","")

Loading…
Cancel
Save