summaryrefslogtreecommitdiffstats
path: root/tools/releasetools/edify_generator.py
Commit message (Collapse)AuthorAgeFilesLines
* pass blobs to write_raw_image() instead of using temp fileDoug Zongker2011-04-121-3/+2
| | | | Change-Id: I73b71541596612552d52a8f7b1ccdd74451ac6fc
* resolved conflicts for merge of 0a1f3236 to honeycomb-plus-aospYing Wang2011-03-071-30/+0
|\ | | | | | | Change-Id: I6596f4a65a99eed98bdca2d8a6840bc378297b6d
| * Drop support for target files with no recovery.fstab.Ying Wang2011-03-041-30/+0
| | | | | | | | | | | | Change-Id: I099298cfffc2546975732a3bf0df60f96ccbdac4 Meanwhile don't build the ota and update zip files if no recovery.fstab found.
* | remove vestigial WriteFirmwareImage functionDoug Zongker2011-03-021-12/+0
| | | | | | | | | | | | | | | | Nothing calls this, and the updater function it calls no longer exists. The HTC-device-specific thing it used to do was moved to HTC extension libraries. Change-Id: I2252adf44ea0c5beb6e9379215d7337880f66f68
* | read partition length from recovery.fstabDoug Zongker2011-02-231-4/+2
| | | | | | | | | | | | Don't hardcode magical partition behavior in the script generator. Change-Id: I4aeea022f8a32a7c9f316be2c2514510344ca0e0
* | Fix build breakMichael Chan2011-01-191-1/+1
| | | | | | | | Change-Id: Ie07f042a9f25bf3329cf2cea8fdeea3e208da775
* | Teach the build system to reserve the last 16 Kbytes of /data for the crypto ↵Ken Sumrall2011-01-191-4/+8
| | | | | | | | | | | | | | | | | | footer If making /data and it's an EMMC interface, reserve the last 16 Kbytes of the partition for the crypto footer. Change-Id: Ia2c0bb53a545f074e79fc9d6ac04faee75fb9be4
* | am 8317e664: am 96a57e73: make info_dict and GetTypeAndDevice available to ↵Doug Zongker2010-09-261-7/+3
|\ \ | |/ | | | | | | | | | | | | | | device extensions Merge commit '8317e66433903badaec8ebd2b9ec2b8153f3d612' * commit '8317e66433903badaec8ebd2b9ec2b8153f3d612': make info_dict and GetTypeAndDevice available to device extensions
| * make info_dict and GetTypeAndDevice available to device extensionsDoug Zongker2010-09-261-7/+3
| | | | | | | | Change-Id: I3aa04cb6d7988fc1fdd7f179634b09ceab5749fb
| * add recovery.fstab as dependency so it triggers rebuild (do not merge)Doug Zongker2010-09-211-1/+2
| | | | | | | | | | | | | | | | Make recovery image depend on the fstab file so it gets rebuilt when fstab changes. Add support for "emmc" fstab partition type to edify_generator. Change-Id: Ic5df4e86c24321bf7d82a644e3e4770352e4f64b
| * support for per-partition fs_type (do not merge)Doug Zongker2010-09-211-31/+68
| | | | | | | | | | | | | | | | | | Include the recovery.fstab file in the recovery image. Remove the global fs_type and partition_type values from the target-files key/value dict, and parse the recovery.fstab file instead to find types for each partition. Change-Id: I35ee2dd0989441dc2a704b63c1b32e598049acb5
| * consolidate target_files metadata into one key-value fileDoug Zongker2010-09-161-1/+1
| | | | | | | | | | | | | | Instead of separate files for recovery api version, tool extensions, and mkyaffs2 options, put those all in the generic key-value file. Change-Id: Ib642311632844d52e4895fd4747093fc7e86232d
| * support for ext4/EMMC in target_files and OTA generationDoug Zongker2010-09-161-14/+32
| | | | | | | | | | | | | | | | | | | | | | | | Move the image sizes into a more generic key-value file. Make them optional. Add additional key/value pairs describing what kind of filesystem the device uses. Pass new fs-type-related arguments in edify scripts when mounting and reformatting partitions. Don't include all the init.*.rc files from the regular system in recovery -- they aren't needed, and break recovery on some devices. Change-Id: Ic1c651f754ed00ba1cffe8cf56c43f7f3b0ebfd7
* | support for per-partition fs_typeDoug Zongker2010-09-211-31/+69
| | | | | | | | | | | | | | | | | | | | | | Include the recovery.fstab file in the recovery image. Remove the global fs_type and partition_type values from the target-files key/value dict, and parse the recovery.fstab file instead to find types for each partition. (Cherrypicked from gingerbread w/some edits to resolve conflicts.) Change-Id: Ic3ed85ac5672d8fe20280dacf43d5b82053311bb
* | Working ASLR implementation.Hristo Bojinov2010-08-021-0/+14
| | | | | | | | | | | | | | | | ASLR for shared libraries is controlled by "-a" in ota_from_target_files. Binary files are self-contained (supported by apriori/soslim). Signed-off-by: Hristo Bojinov <hristo@google.com> Change-Id: I500e325bf4a70a8d69a2ab9b2938e83dadb4e65d
* | generate pseudofilenames for EMMC partitionsDoug Zongker2010-07-071-1/+1
| | | | | | | | Change-Id: Ibe77f4338fed5745c7c650270dcef24988ebfdda
* | support for ext4/EMMC in target_files and OTA generationDoug Zongker2010-07-011-14/+32
|/ | | | | | | | | | | | Move the image sizes into a more generic key-value file. Make them optional. Add additional key/value pairs describing what kind of filesystem the device uses. Pass new fs-type-related arguments in edify scripts when mounting and reformatting partitions. Don't include all the init.*.rc files from the regular system in recovery -- they aren't needed, and break recovery on some devices. Change-Id: I40e49e65f0d76f735259e4b4fef882322cd739da
* pass blobs to applypatch in incremental OTAsDoug Zongker2010-02-221-1/+9
| | | | | | | | | | | | | | applypatch now takes patches as blob-valued arguments instead of just filenames, eliminating the need to unpack all patches to /tmp before starting to apply them. Revert the last change I made where sha1_check(read_file(...)) was substituted for apply_patch_check(...). apply_patch_check() knows to check /cache/saved.file if the original source file is missing or has a bad checksum, which is important if the device loses power or otherwise restarts during patching. Change-Id: Ia5b761474b0f809a5a5eed29455b1b145145699e
* relocate applypatch; check patch integrityDoug Zongker2010-02-191-1/+1
| | | | | | | | | | | | - Delete the applypatch code (it's being moved to bootable/recovery). - Change the OTA script generator to verify the sha1sum of all the patch files after they are unpacked into /tmp. b/2361316 - VZW Issue PP628: Continuous reset to Droid logo: framework-res.apk update failed (CR LIBtt59130) Change-Id: I5858d48f10127f72e708d50d3de844569d1aff27
* add UnmountAll function to OTA script; support radio images w/pathDoug Zongker2010-02-031-2/+6
| | | | | | | | | | | | | | | | Three unrelated changes: - change the add-radio-file makefile function to support adding files with paths. (The path part of the pathname is stripped off.) - add an UnmountAll function to the OTA script generation code, so that we can explicitly unmount everything we've mounted (in addition to doing it automatically at the end of the script). - add the updater API version to the info object passed to device-specific code. Change-Id: Ia62b15403c1cc8fce8d9910f291450c8077e49f4
* improve the OTA progress barDoug Zongker2009-09-201-1/+8
| | | | | | | Make the OTA progress bar advance a bit more smoothly by reallocating how much is dedicated to various phases of incremental OTA installation, based on some crude measurements of how long each phase takes.
* generate OTA packages that use edifyDoug Zongker2009-06-181-0/+226
Split the details of generating script syntax into a generator class: one for amend (whose output should be equivalent to the current output), and one for edify. Fix 'otatools' build rule to build imgdiff.