summaryrefslogtreecommitdiffstats
path: root/tools/releasetools/img_from_target_files
Commit message (Collapse)AuthorAgeFilesLines
* make full OTAs block basedDoug Zongker2014-02-041-270/+1
| | | | | | | | | | | | | Instead of writing individual files and fixing up their metadata, make full OTAs contain a system image and simply write it to the block device. This is only done for target-files that already contain the recovery flashing information, older target-files still get a file-based full OTA. Bug: 12893978 Change-Id: If7586083c8f275e24fec49d260af5b5aff4a0a88
* Fix signing process for SELinux file_contextsKenny Root2013-05-291-0/+8
| | | | | | | | | | When not building locally and just using a target-files.zip from some other build, it still tries to access the file_contexts from the out/ directory. This change instead looks at the unzipped target-files.zip hierarchy to grab that information. Bug: 9191141 Change-Id: I6ea12e82d6c6376fcada412314c5eefc97ff4853
* Support to build vendor.imgYing Wang2013-03-251-39/+80
| | | | | Bug: 8341435 Change-Id: I2db7970936984d38aed35054e3f695d298f4e512
* Skip userdata.img only if partition size is not give for extfs.Ying Wang2013-03-151-2/+3
| | | | | | We still build yaffs2 images which don't need partition size. Change-Id: I9c7f45069f25868666a257cee044faecf1a8781a
* Use the correct size keyYing Wang2012-11-271-1/+1
| | | | | | | At this point, userdata_size has been converted to partition_size in build_image.ImagePropFromGlobalDict(). Change-Id: Ida6be1905ca3109c2660274a16359a9f3fbcd94d
* Skip userdata.img if no size is provided when building images from target filesYing Wang2012-11-191-2/+6
| | | | Change-Id: Iab5c510fcc7608c4b109781e6595ab8964f4c543
* Build cache.img on demandYing Wang2011-11-101-0/+33
| | | | | | | | | Bug: 5153694 To build cache.img, set BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE (required, ext4 only for now), BOARD_CACHEIMAGE_PARTITION_SIZE (optional) in BoardConfig.mk. Change-Id: I1d8b91646aa1dba88285e008ad3335768bcbddd2
* Revert "Build cache.img."Ying Wang2011-11-021-29/+0
| | | | This reverts commit 531bdb546af5127ed9c1012871d780930eb990f5.
* Build cache.img.Ying Wang2011-11-011-0/+29
| | | | Change-Id: I3dbe7afa4934fa718ba20605eebd2e3ce2ae82ab
* Unify the user image building codeYing Wang2011-10-311-41/+14
| | | | | | | | | Bug: 5398808 Before this change we have duplicate code in the Makefile and the python-based releasetool. That's a real headache to maintain. Change-Id: I8ddf04a79c6886540e89d990f723d8f77c9dd883
* Close inherited PIPE before doing workYing Wang2011-02-101-0/+1
| | | | | | | | | Gmake in Darwin has file descriptor leak. In a full build, ota_from_target_files will inherits more than 2000 open PIPEs from gmake and fails in a call to select.select(). This change fixes the build by closing the PIPEs before doing real work. Change-Id: Ie7035d7add0b1da3afb6bf9c2009d40f8c7d29b3
* support use of prebuilt bootable imagesDoug Zongker2011-01-251-10/+23
| | | | | | | | | | | | | | | | | img_from_target_files now, with the -z flag, will produce an output zip with only the bootable partitions (boot and recovery). img_ and ota_from_target_files can take, instead of a simple "target_files.zip", a name of the form "target_files.zip+bootable_images.zip", where the second zip contains bootable images that should be used instead of building them from the target_files.zip. (This should be the zip produced by the above -z flag, perhaps with the images messed with in some way, such as by an unnamed OEM's extra signature wrapper for their "secure boot" process.) Bug: 3391371 Change-Id: Iaf96dfc8f30e806ae342dcf3241566e76ae372d4
* Pass extfs sparse image flag to the release tool.Ying Wang2010-11-171-6/+11
| | | | Change-Id: Icb2a1c4fddb2b6153298ba1b849016aa3d792773
* resolved conflicts for merge of 18c00c5c to masterYing Wang2010-09-281-1/+1
|\ | | | | | | Change-Id: I7f6870b654e24a268a14b9c47eb8d384993273f2
| * Fix userdata partition's ext4 mount point to data.Ying Wang2010-09-271-1/+1
| | | | | | | | | | Bug: 3041475 Change-Id: I07306cd9c90072626dfc132d6655618ae70e64be
* | resolved conflicts for merge of e1daf61d to masterDoug Zongker2010-09-211-1/+1
|\ \ | |/ | | | | Change-Id: Idf5767f68dd19b51940ea69528cdd389b04d56b9
| * arg: system_size, not system_imgDoug Zongker2010-09-211-1/+1
| | | | | | | | Change-Id: Iba5d10204c93159a4f12ea8e8d8687db5b9dd5ca
| * support for per-partition fs_type (do not merge)Doug Zongker2010-09-211-4/+5
| | | | | | | | | | | | | | | | | | 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
* | fall back to MTD if no recovery.fstab is presentDoug Zongker2010-09-211-4/+6
| | | | | | | | | | | | Needed for non-device builds (like for the emulator) to work. Change-Id: I5fdbfb3af34821811744e8ce5bf1eff8df344c73
* | support for per-partition fs_typeDoug Zongker2010-09-211-4/+5
| | | | | | | | | | | | | | | | | | | | | | 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
* | am 25df2a98: am 6be030af: Merge "remove remaining refs to max_image_sizes" ↵Doug Zongker2010-09-171-4/+4
|\ \ | |/ | | | | | | | | | | | | | | into gingerbread Merge commit '25df2a980d87f011fe702b6209c3b71b2824fc18' * commit '25df2a980d87f011fe702b6209c3b71b2824fc18': remove remaining refs to max_image_sizes
| * remove remaining refs to max_image_sizesDoug Zongker2010-09-171-4/+4
| | | | | | | | Change-Id: I7e4686bc06f9c3eab2df34d092021c549738b217
* | resolved conflicts for merge of 813ad17a to masterDoug Zongker2010-09-161-17/+12
|\ \ | |/ | | | | Change-Id: I3fc84babbbcab712c5e38a0c8b815115ba89375f
| * consolidate target_files metadata into one key-value fileDoug Zongker2010-09-161-17/+12
| | | | | | | | | | | | | | 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
* | resolved conflicts for merge of 2cb8d5eb to masterDoug Zongker2010-09-161-24/+10
|\ \ | |/ | | | | Change-Id: I3b1aec1aee7c6bfcee2e978b4755b2bae9e480c4
| * store user-visible image sizes in target-filesDoug Zongker2010-09-161-23/+10
| | | | | | | | | | | | | | | | | | Do the yaffs-specific adjustments to image sizes in common.CheckSize, instead of baking it into the image size stored in the target-files package. Remove the special fs_type flag and fold it into the "info_dict" we have for saving key-value pairs from the build system. Change-Id: I6e63f3330f6277d9a946b22e66cadeb51203ba14
| * support for ext4/EMMC in target_files and OTA generationDoug Zongker2010-09-161-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | am 9314823c: am 93d574f8: Merge "return to using subprocess for running ↵Doug Zongker2010-09-031-10/+4
|\ \ | |/ | | | | | | | | | | | | | | commands" into gingerbread Merge commit '9314823c06d4434bf18d589c2fdea490428becf8' * commit '9314823c06d4434bf18d589c2fdea490428becf8': return to using subprocess for running commands
| * return to using subprocess for running commandsDoug Zongker2010-09-031-10/+4
| | | | | | | | | | | | | | | | | | Reverts Ic4f1c747 and fixes the problem by splitting the extra_flags argument (it wasn't working before because it was getting one argument "-c 4096 -s 128" instead of four arguments "-c", "4096", "-s", "128" and mkyaffs2image apparently just ignores that bogus argument?) Change-Id: Ib1e08d634aa68bfab0f7e09680d407f2cee0797d
* | am a9703989: am ae553143: Refactor a bit.Ying Wang2010-08-271-5/+1
|\ \ | |/ | | | | | | | | | | Merge commit 'a97039890e6a1999327cb3e9f2a28bf077a96e07' * commit 'a97039890e6a1999327cb3e9f2a28bf077a96e07': Refactor a bit.
| * Refactor a bit.Ying Wang2010-08-261-5/+1
| | | | | | | | Change-Id: I4573e7a5239536f49571d9222865e2526da573c8
* | am cef82129: am aa6dbe21: Try to fix system.img in update zip file.Ying Wang2010-08-271-3/+13
|\ \ | |/ | | | | | | | | | | Merge commit 'cef82129e1b2a26f883c20521d79175747eac434' * commit 'cef82129e1b2a26f883c20521d79175747eac434': Try to fix system.img in update zip file.
| * Try to fix system.img in update zip file.Ying Wang2010-08-261-3/+13
| | | | | | | | Change-Id: Ic4f1c7478a22b1f8134ac768904e437fcfea700a
* | am 485bd44d: am d421f57d: Fix mkyaffs2image extra flags in the release tools.Ying Wang2010-08-251-4/+12
|\ \ | |/ | | | | | | | | | | Merge commit '485bd44d0d78f9f612075e17db1adb281741c84f' * commit '485bd44d0d78f9f612075e17db1adb281741c84f': Fix mkyaffs2image extra flags in the release tools.
| * Fix mkyaffs2image extra flags in the release tools.Ying Wang2010-08-251-4/+12
| | | | | | | | Change-Id: I806e3e85ef89941edf04352331e25730c491c470
| * Disable CheckSize on ext partitions to fix build [DO NOT MERGE]Ying Wang2010-08-241-2/+4
| | | | | | | | | | | | Original CL: 59920 Change-Id: I81437996670a61e10284293d25a08da8907ad296
| * Backport ext4 support from master [DO NOT MERGE]Ying Wang2010-08-231-7/+37
| | | | | | | | | | | | ext4 support is needed by crespo. Change-Id: I604cb9ada526ce8ba6b3648171ac1d614a5519a9
* | Disable CheckSize on ext partitions to fix buildColin Cross2010-08-031-2/+4
| | | | | | | | Change-Id: I66c67f8bbd84eb9da988b4079ad4c36089c1c930
* | Pass partition size to mkuserimg.shYing Wang2010-08-031-0/+4
| | | | | | | | Change-Id: Id6a53d8d552e8ce1bdf83fbb756724454e05e5c8
* | support for ext4/EMMC in target_files and OTA generationDoug Zongker2010-07-011-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | extfs support for img_from_target_filesYing Wang2010-06-171-7/+34
|/ | | | Change-Id: Ie3df70426066bff467792b8528bc4528eb6afe15
* Bug in Mac build where it gets confused over case, fix no longer needed.Mike Ritter2009-09-151-2/+11
|
* use the max image sizes from the target files zipDoug Zongker2009-08-031-9/+8
| | | | | | | For some time now the build system has included all the max image sizes in a file in the META directory. Use these instead of needing to parse the BoardConfig.mk file for the device at the time of building an image or OTA package.
* fix archive files being created with perms 000Doug Zongker2009-06-151-1/+1
| | | | | | | In python 2.5 and earlier, ZipFile.writestr(filename, data) results in the file being added to the archive with permissions 000. (See http://svn.python.org/view?view=rev&revision=65235.) Work around this by creating a ZipInfo object and setting the permissions explicitly.
* AI 144270: am: CL 144269 Relocate the new (google-indepedent) tools for ↵Doug Zongker2009-04-021-0/+157
signing and building images & OTA packages out of vendor/google. No device code is touched by this change. Original author: dougz Merged from: //branches/cupcake/... Automated import of CL 144270