summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Dimich <chris.dimich@boundarydevices.com>2023-09-08 18:28:50 +0200
committerArmin Kuster <akuster808@gmail.com>2023-09-19 07:22:00 -0400
commitc0e8ce2623f49d05b5673a03f821e4f4f3478d7f (patch)
tree39589eececb413aad57d07795fb988749042bb7e
parent056148368b83167ec2bb2e6c1835462933f3e804 (diff)
downloadmeta-openembedded-c0e8ce2623f49d05b5673a03f821e4f4f3478d7f.tar.gz
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>
-rw-r--r--meta-oe/classes/image_types_sparse.bbclass12
1 files changed, 7 insertions, 5 deletions
diff --git a/meta-oe/classes/image_types_sparse.bbclass b/meta-oe/classes/image_types_sparse.bbclass
index 69e24cbb79..68c5dbaa14 100644
--- a/meta-oe/classes/image_types_sparse.bbclass
+++ b/meta-oe/classes/image_types_sparse.bbclass
@@ -8,9 +8,11 @@ inherit image_types
8SPARSE_BLOCK_SIZE ??= "4096" 8SPARSE_BLOCK_SIZE ??= "4096"
9 9
10CONVERSIONTYPES += "sparse" 10CONVERSIONTYPES += "sparse"
11CONVERSION_CMD:sparse() { 11
12 INPUT="${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}" 12CONVERSION_CMD:sparse = " \
13 truncate --no-create --size=%${SPARSE_BLOCK_SIZE} "$INPUT" 13 INPUT="${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"; \
14 img2simg -s "$INPUT" "$INPUT.sparse" ${SPARSE_BLOCK_SIZE} 14 truncate --no-create --size=%${SPARSE_BLOCK_SIZE} "$INPUT"; \
15} 15 img2simg -s "$INPUT" "$INPUT.sparse" ${SPARSE_BLOCK_SIZE}; \
16 "
17
16CONVERSION_DEPENDS_sparse = "android-tools-native" 18CONVERSION_DEPENDS_sparse = "android-tools-native"