[Fuchsia] Update download sdk/images to use flags for the buckets
Added support to override the bucket via .gclient args.
Created --sdk-bucket and --images-bucket flags. The update_sdk and update_images scripts will use these flags to know where to download the Fuchsia images/sdk from.
If there is a bucket in the sdk-bucket.txt file then that bucket will be used.
Bug: b/161969415
Change-Id: I6fdf5bef23fb0c51f684af8b2dc090cccc92e79c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2469049
Reviewed-by: Charlie Reis <[email protected]>
Reviewed-by: Kevin Marshall <[email protected]>
Reviewed-by: Sean Topping <[email protected]>
Commit-Queue: Omer Lev-ran <[email protected]>
Cr-Commit-Position: refs/heads/master@{#817889}
diff --git a/DEPS b/DEPS
index 26cb31d80..04e4e48b4 100644
--- a/DEPS
+++ b/DEPS
@@ -162,6 +162,12 @@
# Download prebuilt ash-chrome to test lacros build.
'checkout_prebuilt_ash_chrome': False,
+ # By default, download the fuchsia sdk from the fuchsia GCS bucket.
+ 'fuchsia_sdk_bucket': 'fuchsia',
+
+ # By default, download the fuchsia images from the fuchsia GCS bucket.
+ 'fuchsia_images_bucket': 'fuchsia',
+
# Default to the empty board. Desktop Chrome OS builds don't need cros SDK
# dependencies. Other Chrome OS builds should always define this explicitly.
'cros_boards': Str(''),
@@ -4953,6 +4959,7 @@
'action': [
'python',
'src/build/fuchsia/update_sdk.py',
+ '--default-bucket={fuchsia_sdk_bucket}',
],
},
@@ -4964,6 +4971,7 @@
'python',
'src/build/fuchsia/update_images.py',
'--boot-images={checkout_fuchsia_boot_images}',
+ '--default-bucket={fuchsia_images_bucket}',
],
},