cros_setup_toolchains: add dev-lang/rust-bootstrap
This adds the rust-bootstrap package, which bootstraps cargo and rustc
from source using a trusted compiler. The way this is intended to be
used is that the SDK builder builds this package and we publish the
resulting binaries, which we then use to build the next version
of dev-lang/rustc.
BUG=chromium:1122720
TEST=cros_setup_toolchains --show-packages host-post-cross
Change-Id: I665d72d289099c6869d63db6bfbf77df847352bf
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/2438799
Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
Reviewed-by: LaMont Jones <lamontjones@chromium.org>
Commit-Queue: LaMont Jones <lamontjones@chromium.org>
Tested-by: Bob Haarman <inglorion@chromium.org>
Tested-by: LaMont Jones <lamontjones@chromium.org>
diff --git a/scripts/cros_setup_toolchains.py b/scripts/cros_setup_toolchains.py
index c768aa4..207f227 100644
--- a/scripts/cros_setup_toolchains.py
+++ b/scripts/cros_setup_toolchains.py
@@ -73,6 +73,7 @@
# build), so we have to delay their installation.
HOST_POST_CROSS_PACKAGES = (
'dev-lang/rust',
+ 'dev-lang/rust-bootstrap',
'virtual/target-sdk-post-cross',
'dev-embedded/coreboot-sdk',
)
@@ -82,6 +83,7 @@
# so we have to list them here and wait. Once it completes, entries here can
# be removed so they'll end up on bots & dev's systems.
NEW_PACKAGES = (
+ 'dev-lang/rust-bootstrap',
)
# Enable the Go compiler for these targets.