diff options
author | Yueyao Zhu | 2017-05-03 16:33:32 -0500 |
---|---|---|
committer | Yueyao Zhu | 2017-05-03 16:36:43 -0500 |
commit | e67da71dc18849e8b850abde51d12d453441e3be (patch) | |
tree | 73f5a9509d26c3af61bf0aa389a4b401acfff2fd | |
parent | 672dd970f475a3166f9558affcb0aaafeda4322b (diff) | |
download | platform-system-core-e67da71dc18849e8b850abde51d12d453441e3be.tar.gz platform-system-core-e67da71dc18849e8b850abde51d12d453441e3be.tar.xz platform-system-core-e67da71dc18849e8b850abde51d12d453441e3be.zip |
Add dtbo image support for device tree overlay
Test: Used the built fastboot tool to run flashall on a device
Bug: 32969430
Bug: 36813951
Change-Id: If2db3055bb7250a57d9a78b0534df491b68b6224
-rw-r--r-- | fastboot/fastboot.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp index 982545ca6..dc6e6981d 100644 --- a/fastboot/fastboot.cpp +++ b/fastboot/fastboot.cpp | |||
@@ -124,6 +124,7 @@ static struct { | |||
124 | {"vendor.img", "vendor.sig", "vendor", true, false}, | 124 | {"vendor.img", "vendor.sig", "vendor", true, false}, |
125 | {"vendor_other.img", "vendor.sig", "vendor", true, true}, | 125 | {"vendor_other.img", "vendor.sig", "vendor", true, true}, |
126 | {"vbmeta.img", "vbmeta.sig", "vbmeta", true, false}, | 126 | {"vbmeta.img", "vbmeta.sig", "vbmeta", true, false}, |
127 | {"dtbo.img", "dtbo.sig", "dtbo", true, false}, | ||
127 | }; | 128 | }; |
128 | 129 | ||
129 | static std::string find_item_given_name(const char* img_name, const char* product) { | 130 | static std::string find_item_given_name(const char* img_name, const char* product) { |
@@ -155,6 +156,8 @@ std::string find_item(const char* item, const char* product) { | |||
155 | fn = "vendor.img"; | 156 | fn = "vendor.img"; |
156 | } else if(!strcmp(item,"vbmeta")) { | 157 | } else if(!strcmp(item,"vbmeta")) { |
157 | fn = "vbmeta.img"; | 158 | fn = "vbmeta.img"; |
159 | } else if(!strcmp(item,"dtbo")) { | ||
160 | fn = "dtbo.img"; | ||
158 | } else if(!strcmp(item,"userdata")) { | 161 | } else if(!strcmp(item,"userdata")) { |
159 | fn = "userdata.img"; | 162 | fn = "userdata.img"; |
160 | } else if(!strcmp(item,"cache")) { | 163 | } else if(!strcmp(item,"cache")) { |