cbuildbot: sdk: manually set up the toolchain in the new chroot
Since we no longer ship toolchains or their binpkgs in the sdk tarball,
we have to make sure the new chroot has cross-compiler binpkgs available.
Normal users would fetch them over the network, but local tests don't
have binhosts to fall back on.
Then we have to install them by hand since we're short circuiting the
upgrade code paths.
BUG=chromium:342199
TEST=`cbuildbot chromiumos-sdk` passes
Change-Id: I825bd69f4ca07dfaa135330fc18e93edc4c14d6e
Reviewed-on: https://chromium-review.googlesource.com/227671
Reviewed-by: Gilad Arnold <garnold@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
diff --git a/scripts/cros_setup_toolchains.py b/scripts/cros_setup_toolchains.py
index f79d5cc..eb9b5e1 100644
--- a/scripts/cros_setup_toolchains.py
+++ b/scripts/cros_setup_toolchains.py
@@ -501,6 +501,9 @@
# Filter out all the non-sdk toolchains as we don't want to mess
# with those in all of our builds.
targets = toolchain.FilterToolchains(alltargets, 'sdk', True)
+ elif targets_wanted == set(['boards']):
+ # Only pull targets from the boards.
+ targets = {}
else:
# Verify user input.
nonexistent = targets_wanted.difference(alltargets)