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

* Re: [oe][meta-oe][PATCH] classes: Add Android sparse image class
  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
  1 sibling, 1 reply; 4+ messages in thread
From: Khem Raj @ 2021-03-08 20:54 UTC (permalink / raw)
  To: Joshua Watt; +Cc: openembeded-devel

On Fri, Mar 5, 2021 at 11:09 AM Joshua Watt <JPEWhacker@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.

> +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	[flat|nested] 4+ messages in thread

* Re: [oe][meta-oe][PATCH] classes: Add Android sparse image class
  2021-03-08 20:54 ` Khem Raj
@ 2021-03-08 21:45   ` Joshua Watt
  0 siblings, 0 replies; 4+ messages in thread
From: Joshua Watt @ 2021-03-08 21:45 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembeded-devel


On 3/8/21 2:54 PM, Khem Raj wrote:
> On Fri, Mar 5, 2021 at 11:09 AM Joshua Watt <JPEWhacker@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
>>
>>
>> 
>>

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

* [oe][meta-oe][PATCH v2] classes: Add Android sparse image class
  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:51 ` Joshua Watt
  1 sibling, 0 replies; 4+ messages in thread
From: Joshua Watt @ 2021-03-08 21:51 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Joshua Watt

Adds a class to create sparse image files using the Android tools

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
---
 meta-oe/classes/image_types_sparse.bbclass | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 meta-oe/classes/image_types_sparse.bbclass

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 @@
+inherit image_types
+
+CONVERSIONTYPES += "sparse"
+CONVERSION_CMD_sparse() {
+    in="${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"
+    out="${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.sparse"
+    case "${type}" in
+        ext*)
+            ext2simg "$in" "$out"
+            ;;
+        *)
+            img2simg "$in" "$out"
+            ;;
+    esac
+}
+CONVERSION_DEPENDS_sparse = "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.