diff options
author | Sean Anderson <sean.anderson@seco.com> | 2022-08-12 15:44:04 -0400 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-08-13 07:05:31 -0700 |
commit | 9862a017fa7f88424f0670ba89af58e5051550b0 (patch) | |
tree | bd02990b51040f62df11ffacfc82aec4ff588153 /meta-oe/classes | |
parent | fb331cb62eafd1e534dee292525084ccee0ef3e1 (diff) | |
download | meta-openembedded-9862a017fa7f88424f0670ba89af58e5051550b0.tar.gz |
image_types_sparse: Generate "don't care" chunks
By default, img2simg will only generate raw and fill chunks. This adds
support for "don't care" chunks, based on file holes. This is similar to
how bmaptool works. "don't care" chunks do not need to be written,
speeding up flashing time.
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/classes')
-rw-r--r-- | meta-oe/classes/image_types_sparse.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-oe/classes/image_types_sparse.bbclass b/meta-oe/classes/image_types_sparse.bbclass index 355a3dafc..69e24cbb7 100644 --- a/meta-oe/classes/image_types_sparse.bbclass +++ b/meta-oe/classes/image_types_sparse.bbclass | |||
@@ -11,6 +11,6 @@ CONVERSIONTYPES += "sparse" | |||
11 | CONVERSION_CMD:sparse() { | 11 | CONVERSION_CMD:sparse() { |
12 | INPUT="${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}" | 12 | INPUT="${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}" |
13 | truncate --no-create --size=%${SPARSE_BLOCK_SIZE} "$INPUT" | 13 | truncate --no-create --size=%${SPARSE_BLOCK_SIZE} "$INPUT" |
14 | img2simg "$INPUT" "$INPUT.sparse" ${SPARSE_BLOCK_SIZE} | 14 | img2simg -s "$INPUT" "$INPUT.sparse" ${SPARSE_BLOCK_SIZE} |
15 | } | 15 | } |
16 | CONVERSION_DEPENDS_sparse = "android-tools-native" | 16 | CONVERSION_DEPENDS_sparse = "android-tools-native" |