mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-26 19:47:17 +00:00
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. Signed-off-by: Chris Dimich <chris.dimich@boundarydevices.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Bastian Krause <bst@pengutronix.de> Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
committed by
Armin Kuster
parent
af8bbeb0b8
commit
6439ce2fe5
@@ -8,9 +8,11 @@ inherit image_types
|
|||||||
SPARSE_BLOCK_SIZE ??= "4096"
|
SPARSE_BLOCK_SIZE ??= "4096"
|
||||||
|
|
||||||
CONVERSIONTYPES += "sparse"
|
CONVERSIONTYPES += "sparse"
|
||||||
CONVERSION_CMD:sparse() {
|
|
||||||
INPUT="${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"
|
CONVERSION_CMD:sparse = " \
|
||||||
truncate --no-create --size=%${SPARSE_BLOCK_SIZE} "$INPUT"
|
INPUT="${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"; \
|
||||||
img2simg -s "$INPUT" "$INPUT.sparse" ${SPARSE_BLOCK_SIZE}
|
truncate --no-create --size=%${SPARSE_BLOCK_SIZE} "$INPUT"; \
|
||||||
}
|
img2simg -s "$INPUT" "$INPUT.sparse" ${SPARSE_BLOCK_SIZE}; \
|
||||||
|
"
|
||||||
|
|
||||||
CONVERSION_DEPENDS_sparse = "android-tools-native"
|
CONVERSION_DEPENDS_sparse = "android-tools-native"
|
||||||
|
|||||||
Reference in New Issue
Block a user