diff options
| author | Chris Dimich <chris.dimich@boundarydevices.com> | 2023-08-01 09:40:41 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-08-01 10:26:51 -0700 |
| commit | dff205f5a3b15cbe1d63c5e351dae7a659042213 (patch) | |
| tree | 1b3fd59cecde5033cb5ea5d1df3654cb51315790 | |
| parent | fc2f3e39e21170b5b763f5a61a3a746be40a9634 (diff) | |
| download | meta-openembedded-dff205f5a3b15cbe1d63c5e351dae7a659042213.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.
Also remove IMAGE_NAME_SUFFIX as per:
https://git.openembedded.org/openembedded-core/commit/?id=26d97acc71379ab6702fa54a23b6542a3f51779c
Signed-off-by: Chris Dimich <chris.dimich@boundarydevices.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/classes/image_types_sparse.bbclass | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/meta-oe/classes/image_types_sparse.bbclass b/meta-oe/classes/image_types_sparse.bbclass index 69e24cbb79..d6ea68968e 100644 --- a/meta-oe/classes/image_types_sparse.bbclass +++ b/meta-oe/classes/image_types_sparse.bbclass | |||
| @@ -8,9 +8,10 @@ inherit image_types | |||
| 8 | SPARSE_BLOCK_SIZE ??= "4096" | 8 | SPARSE_BLOCK_SIZE ??= "4096" |
| 9 | 9 | ||
| 10 | CONVERSIONTYPES += "sparse" | 10 | CONVERSIONTYPES += "sparse" |
| 11 | CONVERSION_CMD:sparse() { | 11 | |
| 12 | INPUT="${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}" | 12 | CONVERSION_CMD:sparse = " \ |
| 13 | truncate --no-create --size=%${SPARSE_BLOCK_SIZE} "$INPUT" | 13 | truncate --no-create --size=%${SPARSE_BLOCK_SIZE} "${IMAGE_NAME}.${type}"; \ |
| 14 | img2simg -s "$INPUT" "$INPUT.sparse" ${SPARSE_BLOCK_SIZE} | 14 | img2simg -s "${IMAGE_NAME}.${type}" "${IMAGE_NAME}.${type}.sparse" ${SPARSE_BLOCK_SIZE}; \ |
| 15 | } | 15 | " |
| 16 | |||
| 16 | CONVERSION_DEPENDS_sparse = "android-tools-native" | 17 | CONVERSION_DEPENDS_sparse = "android-tools-native" |
