ota: Don't include recovery in otapackages.
Change-Id: Ia7b9a20aeac4414f2b7db2664cec5d867086d20b
diff --git a/tools/releasetools/ota_from_target_files.py b/tools/releasetools/ota_from_target_files.py
index fc8ad5d..c187a56 100755
--- a/tools/releasetools/ota_from_target_files.py
+++ b/tools/releasetools/ota_from_target_files.py
@@ -799,8 +799,8 @@
# complete script normally
# (allow recovery to mark itself finished and reboot)
- recovery_img = common.GetBootableImage("recovery.img", "recovery.img",
- OPTIONS.input_tmp, "RECOVERY")
+ # recovery_img = common.GetBootableImage("recovery.img", "recovery.img",
+ # OPTIONS.input_tmp, "RECOVERY")
if OPTIONS.two_step:
if not target_info.get("multistage_support"):
assert False, "two-step packages not supported by this build"
@@ -815,7 +815,7 @@
# Stage 2/3: Write recovery image to /recovery (currently running /boot).
script.Comment("Stage 2/3")
- script.WriteRawImage("/recovery", "recovery.img")
+ # script.WriteRawImage("/recovery", "recovery.img")
script.AppendExtra("""
set_stage("%(bcb_dev)s", "3/3");
reboot_now("%(bcb_dev)s", "recovery");