diff options
author | Simon Glass <sjg@chromium.org> | 2022-07-11 19:04:01 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-08-05 11:47:55 -0400 |
commit | fb5cb07abe9856eac2089ed175e08e115db01f2b (patch) | |
tree | 57f47698bbef5543aa0509e6f0c7a06bcf66613b | |
parent | cc2c0d1800528f307df376524132d3573749c581 (diff) | |
download | u-boot-fb5cb07abe9856eac2089ed175e08e115db01f2b.zip u-boot-fb5cb07abe9856eac2089ed175e08e115db01f2b.tar.gz u-boot-fb5cb07abe9856eac2089ed175e08e115db01f2b.tar.bz2 |
buildman: Drop use of 'board' in board module
Use brds instead so that we can reserve 'boards' and 'board' as module
names.
Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | tools/buildman/board.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/buildman/board.py b/tools/buildman/board.py index 08771b3..8de71e4 100644 --- a/tools/buildman/board.py +++ b/tools/buildman/board.py @@ -116,7 +116,7 @@ class Boards: def ReadBoards(self, fname): """Read a list of boards from a board file. - Create a board object for each and add it to our _boards list. + Create a Board object for each and add it to our _boards list. Args: fname: Filename of boards.cfg file @@ -238,21 +238,21 @@ class Boards: terms.append(term) return terms - def SelectBoards(self, args, exclude=[], boards=None): + def SelectBoards(self, args, exclude=[], brds=None): """Mark boards selected based on args Normally either boards (an explicit list of boards) or args (a list of terms to match against) is used. It is possible to specify both, in which case they are additive. - If boards and args are both empty, all boards are selected. + If brds and args are both empty, all boards are selected. Args: args: List of strings specifying boards to include, either named, or by their target, architecture, cpu, vendor or soc. If empty, all boards are selected. exclude: List of boards to exclude, regardless of 'args' - boards: List of boards to build + brds: List of boards to build Returns: Tuple @@ -283,8 +283,8 @@ class Boards: matching_term = str(term) build_it = True break - elif boards: - if brd.target in boards: + elif brds: + if brd.target in brds: build_it = True found.append(brd.target) else: @@ -302,8 +302,8 @@ class Boards: result[matching_term].append(brd.target) result['all'].append(brd.target) - if boards: - remaining = set(boards) - set(found) + if brds: + remaining = set(brds) - set(found) if remaining: warnings.append('Boards not found: %s\n' % ', '.join(remaining)) |