scripts: make sure configure_all.py detects periph builds correctly

This commit is contained in:
Andy Piper 2023-02-05 10:16:46 +00:00 committed by Andrew Tridgell
parent b452701a2b
commit 0221b565a5

View File

@ -68,7 +68,7 @@ def is_ap_periph(board):
hwdef = os.path.join('libraries/AP_HAL_ChibiOS/hwdef/%s/hwdef.dat' % board)
try:
r = open(hwdef, 'r').read()
if r.find('periph/hwdef.dat') != -1 or r.find('AP_PERIPH') != -1:
if r.find('periph/hwdef.dat') != -1 or r.find('periph/hwdef.inc') != -1 or r.find('AP_PERIPH') != -1:
print("%s is AP_Periph" % board)
return True
except Exception as ex: