-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
image-android-sparse: add option to fill holes with zeros
By default 'holes' are converted into "don't care" areas. This adds an option to fill the area with zeros instead. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
- Loading branch information
1 parent
b0395bb
commit d795d93
Showing
7 changed files
with
70 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
image test.hdimage { | ||
hdimage { | ||
align = 1M | ||
partition-table-type = "gpt" | ||
disk-uuid = "afcfea87-e41a-40e0-85ae-295c60773c7a" | ||
} | ||
partition part1 { | ||
image = "part1.img" | ||
size = 10M | ||
partition-uuid = "92762261-e854-45c1-b4c9-fc5e752034ab" | ||
} | ||
partition part2 { | ||
image = "part2.img" | ||
size = 10M | ||
partition-type-uuid = "L" | ||
partition-uuid = "41061242-1d5a-4657-892d-fcc1fdb11a6c" | ||
} | ||
size = 22M | ||
} | ||
|
||
image test.sparse { | ||
android-sparse { | ||
image = test.hdimage | ||
fill-holes = true | ||
} | ||
} | ||
|
||
image interleaved.sparse { | ||
android-sparse { | ||
image = interleaved | ||
block-size = 32k | ||
fill-holes = true | ||
} | ||
} | ||
|
||
image not-aligned.sparse { | ||
android-sparse { | ||
image = not-aligned | ||
block-size = 4k | ||
fill-holes = true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters