diff options
author | Doug Zongker <dougz@android.com> | 2011-04-12 15:50:17 -0700 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2011-04-12 15:50:17 -0700 |
commit | 02da210a5cb4f9cdc7320885484499856236e5a4 (patch) | |
tree | 81430ba05cc04e9a0d3528db41c34f5623fc6c88 /tools/releasetools | |
parent | 24d0796bdec9513f2a5d7f2a8ee1080ae6a7e1fc (diff) | |
download | build-02da210a5cb4f9cdc7320885484499856236e5a4.zip build-02da210a5cb4f9cdc7320885484499856236e5a4.tar.gz build-02da210a5cb4f9cdc7320885484499856236e5a4.tar.bz2 |
pass blobs to write_raw_image() instead of using temp file
Change-Id: I73b71541596612552d52a8f7b1ccdd74451ac6fc
Diffstat (limited to 'tools/releasetools')
-rw-r--r-- | tools/releasetools/edify_generator.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/releasetools/edify_generator.py b/tools/releasetools/edify_generator.py index 6c53f9e..d7b924b 100644 --- a/tools/releasetools/edify_generator.py +++ b/tools/releasetools/edify_generator.py @@ -200,9 +200,8 @@ class EdifyGenerator(object): args = {'device': p.device, 'fn': fn} if partition_type == "MTD": self.script.append( - ('assert(package_extract_file("%(fn)s", "/tmp/%(device)s.img"),\n' - ' write_raw_image("/tmp/%(device)s.img", "%(device)s"),\n' - ' delete("/tmp/%(device)s.img"));') % args) + 'write_raw_image(package_extract_file("%(fn)s"), "%(device)s");' + % args) elif partition_type == "EMMC": self.script.append( 'package_extract_file("%(fn)s", "%(device)s");' % args) |