On 3/8/21 2:54 PM, Khem Raj wrote:
On Fri, Mar 5, 2021 at 11:09 AM Joshua Watt <jpewhac...@gmail.com> wrote:
Adds a class to create sparse image files using the Android tools
---
  meta-oe/classes/image_types_simg.bbclass | 16 ++++++++++++++++
  1 file changed, 16 insertions(+)
  create mode 100644 meta-oe/classes/image_types_simg.bbclass

diff --git a/meta-oe/classes/image_types_simg.bbclass 
b/meta-oe/classes/image_types_simg.bbclass
new file mode 100644
index 000000000..a53fafe5e
--- /dev/null
+++ b/meta-oe/classes/image_types_simg.bbclass
@@ -0,0 +1,16 @@
+inherit image_types
+
+CONVERSIONTYPES += "simg"
I wonder if the name could be made sparse-img ?
simg might indicate, signed image too.

Ya we can do that



+CONVERSION_CMD_simg() {
+    in="${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"
+    out="${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.simg"
+    case "${type}" in
+        ext*)
+            ext2simg "$in" "$out"
+            ;;
+        *)
+            img2simg "$in" "$out"
+            ;;
+    esac
+}
+CONVERSION_DEPENDS_simg = "android-tools-native"
--
2.30.0




-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#89986): 
https://lists.openembedded.org/g/openembedded-devel/message/89986
Mute This Topic: https://lists.openembedded.org/mt/81110943/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to