cbuildbot: sdk: split out toolchain building into a dedicated step
Historically, the cross-compilers were generated during the InitSDK stage
while creating the initial SDK. Since we're moving cross-compiler install
to board setup time (and thus only installing the toolchains needed by that
board), we need to explicitly have the SDK bot build all the toolchains we
care about.
To that end, create a new SDK stage specifically for building the cross-
compilers. We must also move the cross-compiler packaging step in here
since we can't package the toolchains until they've been created.
BUG=chromium:342199
TEST=`./cbuildbot/run_tests` passes
TEST=`cbuildbot chromiumos-sdk` still passes
CQ-DEPEND=CL:227672
Change-Id: I25ff28b0ea51b20e10673f66d8f561a7426107bc
Reviewed-on: https://chromium-review.googlesource.com/228271
Reviewed-by: Gilad Arnold <garnold@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
diff --git a/scripts/cbuildbot.py b/scripts/cbuildbot.py
index 67b69e6..e30b7c7 100644
--- a/scripts/cbuildbot.py
+++ b/scripts/cbuildbot.py
@@ -588,6 +588,7 @@
self._RunStage(build_stages.SetupBoardStage, constants.CHROOT_BUILDER_BOARD)
self._RunStage(chrome_stages.SyncChromeStage)
self._RunStage(chrome_stages.PatchChromeStage)
+ self._RunStage(sdk_stages.SDKBuildToolchainsStage)
self._RunStage(sdk_stages.SDKPackageStage)
self._RunStage(sdk_stages.SDKTestStage)
self._RunStage(artifact_stages.UploadPrebuiltsStage,