diff options
author | Tom Rini <trini@ti.com> | 2013-11-25 10:42:05 -0500 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-11-25 10:42:05 -0500 |
commit | 5a4fe1aaf1210b02bb98e347993ffbcffeb4ffaa (patch) | |
tree | 5495e6b384533f421df3cd47be4df51832219d89 /tools/buildman/board.py | |
parent | e8a8bab52c98950a4befa24526e8ffeb1b3f1c31 (diff) | |
parent | 8426d8b0899eb6a9845b3468662512a8da236241 (diff) |
Merge branch 'buildpatman' of http://git.denx.de/u-boot-x86
Diffstat (limited to 'tools/buildman/board.py')
-rw-r--r-- | tools/buildman/board.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tools/buildman/board.py b/tools/buildman/board.py index 1d3db206bda..5172a473e35 100644 --- a/tools/buildman/board.py +++ b/tools/buildman/board.py @@ -3,6 +3,8 @@ # SPDX-License-Identifier: GPL-2.0+ # +import re + class Board: """A particular board that we can build""" def __init__(self, status, arch, cpu, soc, vendor, board_name, target, options): @@ -135,14 +137,22 @@ class Boards: due to each argument, arranged by argument. """ result = {} + argres = {} for arg in args: result[arg] = 0 + argres[arg] = re.compile(arg) result['all'] = 0 for board in self._boards: if args: for arg in args: - if arg in board.props: + argre = argres[arg] + match = False + for prop in board.props: + match = argre.match(prop) + if match: + break + if match: if not board.build_it: board.build_it = True result[arg] += 1 |