summaryrefslogtreecommitdiffstats
path: root/meta-oe/classes
diff options
context:
space:
mode:
authorSean Anderson <sean.anderson@seco.com>2022-08-12 15:44:04 -0400
committerKhem Raj <raj.khem@gmail.com>2022-08-13 07:05:31 -0700
commit9862a017fa7f88424f0670ba89af58e5051550b0 (patch)
treebd02990b51040f62df11ffacfc82aec4ff588153 /meta-oe/classes
parentfb331cb62eafd1e534dee292525084ccee0ef3e1 (diff)
downloadmeta-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.bbclass2
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"
11CONVERSION_CMD:sparse() { 11CONVERSION_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}
16CONVERSION_DEPENDS_sparse = "android-tools-native" 16CONVERSION_DEPENDS_sparse = "android-tools-native"