Openembedded Core Discussions
 help / color / mirror / Atom feed
From: "S. Fricke" <silvio.fricke@gmail.com>
To: "Burton, Ross" <ross.burton@intel.com>
Cc: OE-core <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH v1 1/1] image_types: add base64 conversion
Date: Mon, 11 Feb 2019 13:14:17 +0100	[thread overview]
Message-ID: <20190211121417.podjcgrldnykucgb@sfserver> (raw)
In-Reply-To: <CAJTo0Laft-Z97PmWL8G4i-qrHxQUmurL6dYz_fp1PJjkwmS2hw@mail.gmail.com>

Hi,

>    Is it?  I'm genuinely curious when a base64 encoded image is useful. 

It is! :-)
We are using a softwarestack which use base64 (I am delighted thats no one is
using uuencode ^^) encoded images to transfer them via wire. I can not change
this stack.

If this isn't useful, maybe you can help me to get a own conversion cmd into
my own bbclasses? I have tried it in several ways, but nothing worked. The
last approach was to change the image_type.bbclass.


TIA,
Silvio


>    Ross
>    On Mon, 11 Feb 2019 at 06:03, Silvio Fricke <[1]silvio.fricke@gmail.com>
>    wrote:
> 
>      Sometimes it is useful to have a base64 representation of an image.
> 
>      Signed-off-by: Silvio Fricke <[2]silvio.fricke@gmail.com>
>      ---
>       meta/classes/image_types.bbclass | 4 +++-
>       1 file changed, 3 insertions(+), 1 deletion(-)
> 
>      diff --git a/meta/classes/image_types.bbclass
>      b/meta/classes/image_types.bbclass
>      index 70bd315306..ddca5b624e 100644
>      --- a/meta/classes/image_types.bbclass
>      +++ b/meta/classes/image_types.bbclass
>      @@ -280,7 +280,7 @@ IMAGE_TYPES = " \
>       # CONVERSION_CMD/DEPENDS.
>       COMPRESSIONTYPES ?= ""
> 
>      -CONVERSIONTYPES = "gz bz2 lzma xz lz4 lzo zip sum md5sum sha1sum
>      sha224sum sha256sum sha384sum sha512sum bmap u-boot vmdk vdi qcow2
>      ${COMPRESSIONTYPES}"
>      +CONVERSIONTYPES = "gz bz2 lzma xz lz4 lzo zip sum md5sum sha1sum
>      sha224sum sha256sum sha384sum sha512sum bmap u-boot vmdk vdi qcow2
>      base64 ${COMPRESSIONTYPES}"
>       CONVERSION_CMD_lzma = "lzma -k -f -7
>      ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"
>       CONVERSION_CMD_gz = "pigz -f -9 -n -c
>      ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} >
>      ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.gz"
>       CONVERSION_CMD_bz2 = "pbzip2 -f -k
>      ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"
>      @@ -300,6 +300,7 @@ CONVERSION_CMD_u-boot = "mkimage -A ${UBOOT_ARCH} -O
>      linux -T ramdisk -C none -n
>       CONVERSION_CMD_vmdk = "qemu-img convert -O vmdk
>      ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}
>      ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.vmdk"
>       CONVERSION_CMD_vdi = "qemu-img convert -O vdi
>      ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}
>      ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.vdi"
>       CONVERSION_CMD_qcow2 = "qemu-img convert -O qcow2
>      ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}
>      ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.qcow2"
>      +CONVERSION_CMD_base64 = "base64
>      ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} >
>      ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.base64"
>       CONVERSION_DEPENDS_lzma = "xz-native"
>       CONVERSION_DEPENDS_gz = "pigz-native"
>       CONVERSION_DEPENDS_bz2 = "pbzip2-native"
>      @@ -313,6 +314,7 @@ CONVERSION_DEPENDS_u-boot = "u-boot-tools-native"
>       CONVERSION_DEPENDS_vmdk = "qemu-native"
>       CONVERSION_DEPENDS_vdi = "qemu-native"
>       CONVERSION_DEPENDS_qcow2 = "qemu-native"
>      +CONVERSION_DEPENDS_base64 = "coreutils-native"
> 
>       RUNNABLE_IMAGE_TYPES ?= "ext2 ext3 ext4"
>       RUNNABLE_MACHINE_PATTERNS ?= "qemu"
>      --
>      2.20.1
> 
>      --
>      _______________________________________________
>      Openembedded-core mailing list
>      [3]Openembedded-core@lists.openembedded.org
>      [4]http://lists.openembedded.org/mailman/listinfo/openembedded-core
> 
> References
> 
>    Visible links
>    1. mailto:silvio.fricke@gmail.com
>    2. mailto:silvio.fricke@gmail.com
>    3. mailto:Openembedded-core@lists.openembedded.org
>    4. http://lists.openembedded.org/mailman/listinfo/openembedded-core
> /usr/bin/xdg-open: line 881: www-browser: command not found
> /usr/bin/xdg-open: line 881: links2: command not found

-- 
-- S. Fricke ---------------------------------------- silvio@port1024.net --
   Diplom-Informatiker (FH)
   Linux-Development                         Matrix: @silvio:port1024.net   
----------------------------------------------------------------------------


  reply	other threads:[~2019-02-11 12:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-11  6:02 [PATCH v1 0/1] Add base64 as conversion type Silvio Fricke
2019-02-11  6:02 ` [PATCH v1 1/1] image_types: add base64 conversion Silvio Fricke
2019-02-11 10:27   ` Burton, Ross
2019-02-11 12:14     ` S. Fricke [this message]
2019-02-11 12:28       ` Burton, Ross

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190211121417.podjcgrldnykucgb@sfserver \
    --to=silvio.fricke@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=ross.burton@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox