summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTreehugger Robot2018-07-31 21:00:40 -0500
committerGerrit Code Review2018-07-31 21:00:40 -0500
commit8b8d7d67f21cf7331677a2911665e7d3518207b7 (patch)
treeac14714c5b5d3de2534f32fae44bfc05932b6677
parent4c87c1743efecaf992c7d0340041458f78fc9294 (diff)
parentc7ea1afe90ac2524c7468caa9f5a0cb19d538560 (diff)
downloadplatform-system-core-8b8d7d67f21cf7331677a2911665e7d3518207b7.tar.gz
platform-system-core-8b8d7d67f21cf7331677a2911665e7d3518207b7.tar.xz
platform-system-core-8b8d7d67f21cf7331677a2911665e7d3518207b7.zip
Merge "Add product-services.img for `fastboot flashall`."
-rw-r--r--fastboot/fastboot.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp
index 263ea1780..c830321a8 100644
--- a/fastboot/fastboot.cpp
+++ b/fastboot/fastboot.cpp
@@ -114,20 +114,25 @@ static struct {
114 bool is_optional; 114 bool is_optional;
115 bool is_secondary; 115 bool is_secondary;
116} images[] = { 116} images[] = {
117 // clang-format off 117 // clang-format off
118 { "boot", "boot.img", "boot.sig", "boot", false, false }, 118 { "boot", "boot.img", "boot.sig", "boot", false, false },
119 { nullptr, "boot_other.img", "boot.sig", "boot", true, true }, 119 { nullptr, "boot_other.img", "boot.sig", "boot", true, true },
120 { "dtbo", "dtbo.img", "dtbo.sig", "dtbo", true, false }, 120 { "dtbo", "dtbo.img", "dtbo.sig", "dtbo", true, false },
121 { "dts", "dt.img", "dt.sig", "dts", true, false }, 121 { "dts", "dt.img", "dt.sig", "dts", true, false },
122 { "odm", "odm.img", "odm.sig", "odm", true, false }, 122 { "odm", "odm.img", "odm.sig", "odm", true, false },
123 { "product", "product.img", "product.sig", "product", true, false }, 123 { "product", "product.img", "product.sig", "product", true, false },
124 { "product-services",
125 "product-services.img",
126 "product-services.sig",
127 "product-services",
128 true, false },
124 { "recovery", "recovery.img", "recovery.sig", "recovery", true, false }, 129 { "recovery", "recovery.img", "recovery.sig", "recovery", true, false },
125 { "system", "system.img", "system.sig", "system", false, false }, 130 { "system", "system.img", "system.sig", "system", false, false },
126 { nullptr, "system_other.img", "system.sig", "system", true, true }, 131 { nullptr, "system_other.img", "system.sig", "system", true, true },
127 { "vbmeta", "vbmeta.img", "vbmeta.sig", "vbmeta", true, false }, 132 { "vbmeta", "vbmeta.img", "vbmeta.sig", "vbmeta", true, false },
128 { "vendor", "vendor.img", "vendor.sig", "vendor", true, false }, 133 { "vendor", "vendor.img", "vendor.sig", "vendor", true, false },
129 { nullptr, "vendor_other.img", "vendor.sig", "vendor", true, true }, 134 { nullptr, "vendor_other.img", "vendor.sig", "vendor", true, true },
130 // clang-format on 135 // clang-format on
131}; 136};
132 137
133static std::string find_item_given_name(const char* img_name) { 138static std::string find_item_given_name(const char* img_name) {