AP_Periph: pull out supported targets from wscript into a separate file

This commit is contained in:
Siddharth Purohit 2021-01-06 03:13:49 +05:30 committed by Andrew Tridgell
parent 3ae76fa64b
commit c54a597571

View File

@ -4,7 +4,7 @@
import fnmatch import fnmatch
def build(bld): def build(bld):
targets = ['f103-*', 'f303-*', 'CUAV_GPS', 'ZubaxGNSS*', '*-periph', 'sitl_*', 'HitecMosaic*'] targets = bld.ap_periph_boards()
valid_target = False valid_target = False
for t in targets: for t in targets:
if fnmatch.fnmatch(bld.env.BOARD, t): if fnmatch.fnmatch(bld.env.BOARD, t):