Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame^] | 1 | inherit image_types |
2 | |||||
3 | CONVERSIONTYPES += "sparse" | ||||
4 | CONVERSION_CMD_sparse() { | ||||
5 | in="${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}" | ||||
6 | out="${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.sparse" | ||||
7 | case "${type}" in | ||||
8 | ext*) | ||||
9 | ext2simg "$in" "$out" | ||||
10 | ;; | ||||
11 | *) | ||||
12 | img2simg "$in" "$out" | ||||
13 | ;; | ||||
14 | esac | ||||
15 | } | ||||
16 | CONVERSION_DEPENDS_sparse = "android-tools-native" |