aboutsummaryrefslogtreecommitdiffstats
path: root/updater/updater.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@google.com>2014-08-15 14:31:52 -0700
committerDoug Zongker <dougz@google.com>2014-08-19 16:53:39 -0700
commitbc7ffeda98a861e346c30c771d3258030f7fcf21 (patch)
treea435cfd2bd1b457bb2e45304b8e75cd2e1305831 /updater/updater.c
parent2efc9d994ce59f9ebfc2290c2adc5d760e8939c2 (diff)
downloadbootable_recovery-bc7ffeda98a861e346c30c771d3258030f7fcf21.zip
bootable_recovery-bc7ffeda98a861e346c30c771d3258030f7fcf21.tar.gz
bootable_recovery-bc7ffeda98a861e346c30c771d3258030f7fcf21.tar.bz2
installer for new block OTA system
(Cherry-pick back from master.) Bug: 16984795 Change-Id: Ifa3d8345c5e2a0be86fb28faa080ca82592a96b4
Diffstat (limited to 'updater/updater.c')
-rw-r--r--updater/updater.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/updater/updater.c b/updater/updater.c
index b7af3e5..465e123 100644
--- a/updater/updater.c
+++ b/updater/updater.c
@@ -21,6 +21,7 @@
#include "edify/expr.h"
#include "updater.h"
#include "install.h"
+#include "blockimg.h"
#include "minzip/Zip.h"
#include "minzip/SysUtil.h"
@@ -98,6 +99,7 @@ int main(int argc, char** argv) {
RegisterBuiltins();
RegisterInstallFunctions();
+ RegisterBlockImageFunctions();
RegisterDeviceExtensions();
FinishRegistration();
@@ -127,6 +129,8 @@ int main(int argc, char** argv) {
updater_info.cmd_pipe = cmd_pipe;
updater_info.package_zip = &za;
updater_info.version = atoi(version);
+ updater_info.package_zip_addr = map.addr;
+ updater_info.package_zip_len = map.length;
State state;
state.cookie = &updater_info;