All of lore.kernel.org
 help / color / mirror / Atom feed
* [oe][meta-oe][PATCH] classes: Add Android sparse image class
@ 2021-03-05 19:08 Joshua Watt
  2021-03-08 20:54 ` Khem Raj
  2021-03-08 21:51 ` [oe][meta-oe][PATCH v2] " Joshua Watt
  0 siblings, 2 replies; 4+ messages in thread
From: Joshua Watt @ 2021-03-05 19:08 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Joshua Watt

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"
+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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-03-08 21:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-05 19:08 [oe][meta-oe][PATCH] classes: Add Android sparse image class Joshua Watt
2021-03-08 20:54 ` Khem Raj
2021-03-08 21:45   ` Joshua Watt
2021-03-08 21:51 ` [oe][meta-oe][PATCH v2] " Joshua Watt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.