Skip to content

Commit dff205f

Browse files
Chris Dimichkraj
authored andcommitted
image_types_sparse: Fix syntax error
When using the image type: IMAGE_FSTYPES += " wic.sparse" IMAGE_CLASSES += " image_types_sparse" The following error arises: Syntax error: Bad function name So need to remove function in favor of variable. Also remove IMAGE_NAME_SUFFIX as per: https://git.openembedded.org/openembedded-core/commit/?id=26d97acc71379ab6702fa54a23b6542a3f51779c Signed-off-by: Chris Dimich <[email protected]> Signed-off-by: Khem Raj <[email protected]>
1 parent fc2f3e3 commit dff205f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

meta-oe/classes/image_types_sparse.bbclass

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ inherit image_types
88
SPARSE_BLOCK_SIZE ??= "4096"
99

1010
CONVERSIONTYPES += "sparse"
11-
CONVERSION_CMD:sparse() {
12-
INPUT="${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"
13-
truncate --no-create --size=%${SPARSE_BLOCK_SIZE} "$INPUT"
14-
img2simg -s "$INPUT" "$INPUT.sparse" ${SPARSE_BLOCK_SIZE}
15-
}
11+
12+
CONVERSION_CMD:sparse = " \
13+
truncate --no-create --size=%${SPARSE_BLOCK_SIZE} "${IMAGE_NAME}.${type}"; \
14+
img2simg -s "${IMAGE_NAME}.${type}" "${IMAGE_NAME}.${type}.sparse" ${SPARSE_BLOCK_SIZE}; \
15+
"
16+
1617
CONVERSION_DEPENDS_sparse = "android-tools-native"

0 commit comments

Comments
 (0)