summaryrefslogtreecommitdiff
path: root/partition_tools/lpmake.cc
AgeCommit message (Collapse)Author
2019-04-03lpmake: allow to build non-sparse super image.Yifan Hong
Bug: 120041578 Test: build without --sparse but with --image. Change-Id: Iaaa8324fa1f9e8e6785f96e787c8a4ee23d37982
2018-11-08lpmake: Allow writing split super images.David Anderson
To use this mode, the build must be a retrofit build and --output should be a folder rather than a file. This also fixes a bug in lpdump where it refuses to dump full super.img images on the host. Bug: 118887112 Test: manual test Change-Id: I3318684fbea6fe67bfa171001beea3a5c560fbab
2018-11-08partition_tools: Update for auto-slot-suffixing.David Anderson
lpmake: Add --auto-slot-suffixing for retrofit builds. lpdump: Show the slot-suffixed flag when dumping super_empty. Bug: 116802789 Test: manual test Change-Id: I65e1d4d6922d117b9dcdbfbf9ced045c97549e59
2018-10-26partition_tools: Update for multiple block device support.David Anderson
lpmake: Support multiple block devices in super. This adds a --device command that can be used to span super across multiple block devices. Example: lpmake --device "system_a:10240000:0:0" --device "vendor_a:5120000:0:0" --device "product_a:2560000:0:0" ... lpdump: Display the block device for each extent. Bug: 116802789 Test: manual test of lpmake Test: lpdump /dev/block/by-name/super Change-Id: I2e0ec54daf3b4fde04115ea646a7622426f67496
2018-10-04partition_tools: Remove references to partition guid.David Anderson
Bug: 117229984 Test: builds with PRODUCT_USE_LOGICAL_PARTITIONS=true Change-Id: Ibba49f7a066fd190f8431253302f1437f07ba6dd
2018-10-02partition_tools: Add support for partition groups.David Anderson
lpmake: Add a new -g/--groups parameter to add partition groups. The syntax is name:size. In addition, a fifth argument can be added to -p/--partition, to specify a group for that partition. Example: lpmake --group google:102400000 \ --partition system:UUID:readonly:4096:google In addition, lpdump will now display the groups table and group assignments. Bug: 116817738 Test: lpmake with --groups lpdump new partition table Change-Id: Ic1eb995f3bcf5abc7be180ac03c8ba4b82a10045
2018-08-02lpmake: Pass the block size to MetadataBuilder.David Anderson
Bug: 79173901 Test: lpmake builds Change-Id: I6e7e5f24c5819250f82d100f47aa15938f7cb039
2018-08-01partition_tools: Use ResizePartition instead of GrowPartition.David Anderson
Bug: 79173901 Test: N/A Change-Id: I1b13883f5089a00e7c4637ebb2e5bdb44a50d11e
2018-07-17lpmake: Add an option for including partition data in sparse images.David Anderson
Bug: 79173901 Test: lpmake -S -i with an ext4 image can be mounted after flashing Change-Id: I82ab5b34e56915c0a01bb11aacca1c3b00d294e9
2018-07-17lpmake: Pass a block size to WriteToSparseFile.David Anderson
Note: The default block size is 4096. Bug: 79173901 Test: lpmake -S can be flashed to Pixel 2 Change-Id: I44a96126edddbaedf078c3a59be3a74df89c0d74
2018-07-17partition_tools: Add a README.md.David Anderson
Bug: 79173901 Test: N/A Change-Id: I07a0948d04c2300ecf719a812cdd70cbbfb298e7
2018-07-13lpmake: Add a --sparse option for creating super partition images.David Anderson
This change allows creating a sparse image of the super partition, which can then be flashed using fastboot. Bug: 79173901 Test: N/A Change-Id: Ic49f843a47d5c222ce35ce1bda90fc8c0be578c8
2018-07-12partition_tools: Use the new liblp header layout.David Anderson
Bug: 79173901 Test: N/A Change-Id: Idb5cf17843262102d3db5722a6ec32110634d40e
2018-07-09lpmake: Use a default alignment of 1MiB.David Anderson
Bug: 79173901 Test: N/A Change-Id: I1a458980b846f8227adf837ea8fed93acab0857e
2018-06-22Add standalone tools for logical partitions.David Anderson
This introduces three standalone tools: lpmake, lpdump, and lpflash. lpmake should be run on the host and will output a partition table image that can be flashed to a block device. An example invocation: lpmake --device-size 268435456 --metadata-size 131072 \ --metadata-slots 2 --output lptable.img \ --partition "cache:7837d8ea-a9cb-425f-809f-de8d9670f3c7:none:209715200" lpdump is a diagnostic tool that will print the contents of a logical partition table. It can inspect either an image file (from lpmake) or a live physical partition on a device. lpflash is a helper tool until fastboot supports logical partitions. It must be run on a device, and will write a partition table image (created by lpmake) to a block device. Bug: 79173901 Test: N/A Change-Id: Iac0863c8d42b5d6508c30b1f298fbdff07653696