Tools: scripts: build_binaries.py: understand magic ChibiOS boards

This commit is contained in:
Peter Barker 2018-04-10 13:00:55 +10:00 committed by Peter Barker
parent 1b3dc9faf7
commit b4682f8b2a

View File

@ -155,6 +155,16 @@ is bob we will attempt to checkout bob-AVR'''
except IOError as e:
if e.errno != 2:
raise
# see if there's a hwdef.dat for this board:
if os.path.exists(os.path.join(self.basedir,
'libraries',
'AP_HAL_ChibiOS',
'hwdef',
board)):
self.progress("ChibiOS build: %s" % (board,))
return False
self.progress("Skipping unsupported board %s" % (board,))
return True