util/abuild: Enable abuild to compile a single variant
commit57ccb9c5e859f515aa4f07e6bf81a9f2ae58a988
authorFurquan Shaikh <furquan@google.com>
Sat, 23 Jun 2018 08:00:32 +0000 (23 01:00 -0700)
committerFurquan Shaikh <furquan@google.com>
Mon, 25 Jun 2018 17:41:26 +0000 (25 17:41 +0000)
tree88abed8eb340d123f9f5126b010414e55a8b833f
parent0be087deee20dee48284e867c378d0ebd1b57940
util/abuild: Enable abuild to compile a single variant

There are many boards in coreboot which support multiple
variants. When abuild is used to compile a single target, it builds
all its variants. If a target has 5 variants, then abuild takes nearly
10x the time to compile all variants of the target. This change adds
an option -b/--board-variant to enable abuild to compile only a single
variant of the target.

TEST=Verified:
1. abuild builds all variants of the target if -b option is not
provided.
2. abuild builds a single variant if -b option is provided.
3. abuild prints appropriate error message if invalid variant name is
provided.

Change-Id: I3781568c6409c5ec2610a8386a21d86037428e7f
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/27215
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Justin TerAvest <teravest@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
util/abuild/abuild