diff options
author | Ying Wang <wangying@google.com> | 2014-02-05 11:28:51 -0800 |
---|---|---|
committer | Ying Wang <wangying@google.com> | 2014-02-05 11:29:34 -0800 |
commit | d89ffa8623b750f85cbb8be01aba9fa4a9448180 (patch) | |
tree | de36fd3bf462ae68f6f78d97cebcb76aa08c09c0 /tools/releasetools/make_recovery_patch | |
parent | 9cee77b3704eaeee30b724590fe62ad5a8305339 (diff) | |
download | build-d89ffa8623b750f85cbb8be01aba9fa4a9448180.zip build-d89ffa8623b750f85cbb8be01aba9fa4a9448180.tar.gz build-d89ffa8623b750f85cbb8be01aba9fa4a9448180.tar.bz2 |
Fix emulator builds
which don't have boot.img.
Change-Id: Id97a53c5356d435d9c70107ef047bed003769e22
Diffstat (limited to 'tools/releasetools/make_recovery_patch')
-rwxr-xr-x | tools/releasetools/make_recovery_patch | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/releasetools/make_recovery_patch b/tools/releasetools/make_recovery_patch index 765063a..470dfc4 100755 --- a/tools/releasetools/make_recovery_patch +++ b/tools/releasetools/make_recovery_patch @@ -39,6 +39,9 @@ def main(argv): boot_img = common.GetBootableImage("boot.img", "boot.img", input_dir, "BOOT") + if not recovery_img or not boot_img: + sys.exit(0) + def output_sink(fn, data): with open(os.path.join(output_dir, "SYSTEM", *fn.split("/")), "wb") as f: f.write(data) |