diff --git a/Tools/scripts/board_list.py b/Tools/scripts/board_list.py index 769c0074de..6021fa6169 100755 --- a/Tools/scripts/board_list.py +++ b/Tools/scripts/board_list.py @@ -2,6 +2,7 @@ import os import re +import fnmatch ''' list of boards for build_binaries.py and custom build server @@ -24,6 +25,12 @@ class Board(object): 'Sub', ] +def in_blacklist(blacklist, b): + '''return true if board b is in the blacklist, including wildcards''' + for bl in blacklist: + if fnmatch.fnmatch(b, bl): + return True + return False class BoardList(object): @@ -137,9 +144,10 @@ class BoardList(object): "MazzyStarDrone", "omnibusf4pro-one", "skyviper-f412-rev1", + "*-ODID", ] - ret = filter(lambda x : x not in blacklist, ret) + ret = filter(lambda x : not in_blacklist(blacklist, x), ret) # if the caller has supplied a vehicle to limit to then we do that here: if build_target is not None: