summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2014-04-30 13:42:02 -0600
committerStephen Warren <swarren@nvidia.com>2014-04-30 13:44:16 -0600
commitadb37b7c62c06502f1e7cb8a55df67b849258799 (patch)
tree922289c2a7a07ba73303de4a0217c62c83af9b03
parent84484c2c521fb7a9ad2f81a6aa052aa0a38b6ff6 (diff)
downloadtegra-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-xbuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/build b/build
index 7bfc2d9..5e94474 100755
--- a/build
+++ b/build
@@ -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():