Merge "Keystore 2.0: Temporarily disable software keymint."
diff --git a/host/commands/fetcher/fetch_cvd.cc b/host/commands/fetcher/fetch_cvd.cc
index 0f7fe00..b84fbba 100644
--- a/host/commands/fetcher/fetch_cvd.cc
+++ b/host/commands/fetcher/fetch_cvd.cc
@@ -424,6 +424,12 @@
if (build_api.ArtifactToFile(kernel_build, "bzImage", local_path)) {
AddFilesToConfig(FileSource::KERNEL_BUILD, kernel_build, {local_path},
&config, target_dir);
+ }
+ // If the kernel is from an arm/aarch64 build, the artifact will be called
+ // Image.
+ else if (build_api.ArtifactToFile(kernel_build, "Image", local_path)) {
+ AddFilesToConfig(FileSource::KERNEL_BUILD, kernel_build, {local_path},
+ &config, target_dir);
} else {
LOG(FATAL) << "Could not download " << kernel_build << ":bzImage to "
<< local_path;
@@ -454,6 +460,13 @@
if (build_api.ArtifactToFile(bootloader_build, "u-boot.rom", local_path)) {
AddFilesToConfig(FileSource::BOOTLOADER_BUILD, bootloader_build,
{local_path}, &config, target_dir, true);
+ }
+ // If the bootloader is from an arm/aarch64 build, the artifact will be of
+ // filetype bin.
+ else if (build_api.ArtifactToFile(bootloader_build, "u-boot.bin",
+ local_path)) {
+ AddFilesToConfig(FileSource::BOOTLOADER_BUILD, bootloader_build,
+ {local_path}, &config, target_dir, true);
} else {
LOG(FATAL) << "Could not download " << bootloader_build << ":u-boot.rom to "
<< local_path;