diff options
author | Simon Glass <sjg@chromium.org> | 2014-08-28 09:43:41 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-09-05 13:40:43 -0600 |
commit | 3cf4ae6f8672cd10ddba4b18bf82e4d03aeb15e6 (patch) | |
tree | c346c3bee954f28ce52ccef7ccd30ce2f747f331 /tools/buildman/control.py | |
parent | f60c9d4f39f8ca8948594a773eee43543ca37807 (diff) | |
download | u-boot-3cf4ae6f8672cd10ddba4b18bf82e4d03aeb15e6.tar.gz u-boot-3cf4ae6f8672cd10ddba4b18bf82e4d03aeb15e6.tar.xz u-boot-3cf4ae6f8672cd10ddba4b18bf82e4d03aeb15e6.zip |
buildman: Implement an option to exclude boards from the build
Some boards are known to be broken and it is convenient to be able to
exclude them from the build.
Add an --exclude option to specific boards to exclude. This uses the
same matching rules as the normal 'include' arguments, and is a comma-
separated list of regular expressions.
Suggested-by: York Sun <yorksun@freescale.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/buildman/control.py')
-rw-r--r-- | tools/buildman/control.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/buildman/control.py b/tools/buildman/control.py index b8a6cbfe2f..cb01158b60 100644 --- a/tools/buildman/control.py +++ b/tools/buildman/control.py @@ -127,7 +127,13 @@ def DoBuildman(options, args): boards = board.Boards() boards.ReadBoards(os.path.join(options.git, 'boards.cfg')) - why_selected = boards.SelectBoards(args) + + exclude = [] + if options.exclude: + for arg in options.exclude: + exclude += arg.split(',') + + why_selected = boards.SelectBoards(args, exclude) selected = boards.GetSelected() if not len(selected): sys.exit(col.Color(col.RED, 'No matching boards found')) |