diff options
author | Stephen Warren <swarren@nvidia.com> | 2014-04-30 13:42:02 -0600 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2014-04-30 13:44:16 -0600 |
commit | adb37b7c62c06502f1e7cb8a55df67b849258799 (patch) | |
tree | 922289c2a7a07ba73303de4a0217c62c83af9b03 | |
parent | 84484c2c521fb7a9ad2f81a6aa052aa0a38b6ff6 (diff) | |
download | tegra-uboot-flasher-scripts-adb37b7c62c06502f1e7cb8a55df67b849258799.tar.gz |
Allow --boards to add to not replace the set of enabled boards
The following already work:
Build all boards that are enabled by default:
./build build
Build a specific set of boards:
./build --boards beaver,jetson-tk1 build
Sometimes it's nice to build all boards that are enabled by default,
plus a few others which aren't. This patch enables the following syntax
for that:
./build --boards +jetson-tk1 build
Signed-off-by: Stephen Warren <swarren@nvidia.com>
-rwxr-xr-x | build | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -108,9 +108,17 @@ def user_restrict_socs(enabled_socs): socs[socname]['disabled'] = not socname in enabled_socs def user_restrict_boards(enabled_boards): + if enabled_boards[0] == '+': + disable_others = False + enabled_boards = enabled_boards[1:] + else: + disable_others = True enabled_boards = enabled_boards.split(',') for boardname in boards.keys(): - boards[boardname]['disabled'] = not boardname in enabled_boards + if boardname in enabled_boards: + boards[boardname]['disabled'] = False + elif disable_others: + boards[boardname]['disabled'] = True def restrict_boards(): for board in boards.values(): |