diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2021-03-08 15:51:18 -0600 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-03-08 14:11:59 -0800 |
commit | 58ddb1445b38fddf4726c130d7036371152666c1 (patch) | |
tree | 8cae42e8c4a8e2f91c119840d570bb7c4f50e24b /meta-oe/classes | |
parent | bd09abe3e319f02b6901a56643a235c799c0f157 (diff) | |
download | meta-openembedded-58ddb1445b38fddf4726c130d7036371152666c1.tar.gz |
classes: Add Android sparse image class
Adds a class to create sparse image files using the Android tools
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/classes')
-rw-r--r-- | meta-oe/classes/image_types_sparse.bbclass | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/meta-oe/classes/image_types_sparse.bbclass b/meta-oe/classes/image_types_sparse.bbclass new file mode 100644 index 000000000..1459f800a --- /dev/null +++ b/meta-oe/classes/image_types_sparse.bbclass | |||
@@ -0,0 +1,16 @@ | |||
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" | ||