Openembedded Bitbake Development
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Kang Kai <kai.kang@windriver.com>
Cc: bitbake-devel@lists.openembedded.org, Zhenfeng.Zhao@windriver.com
Subject: Re: [PATCH 3/3] bitbake.conf: add variable IMAGE_TYPES_MAP
Date: Sat, 25 Aug 2012 08:45:41 +0100	[thread overview]
Message-ID: <1345880741.14369.95.camel@ted> (raw)
In-Reply-To: <b081443c18a09548804fe39eb718355e0f067ff5.1345799414.git.kai.kang@windriver.com>

On Fri, 2012-08-24 at 17:15 +0800, Kang Kai wrote:
> Add variable IMAGE_TYPES_MAP to replace the hob2 hard-coded image types
> map.
> 
> The format of IMAGE_TYPES_MAP is:
> "image_type1:realname_extend1 image_type2:realname_extend2,extend3 ..."
> 
> Signed-off-by: Kang Kai <kai.kang@windriver.com>
> ---
>  meta/conf/bitbake.conf |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> index ad98756..7d2a9b9 100644
> --- a/meta/conf/bitbake.conf
> +++ b/meta/conf/bitbake.conf
> @@ -770,3 +770,6 @@ BB_SIGNATURE_EXCLUDE_FLAGS ?= "doc defaultval _append _prepend deps depends lock
>  
>  MLPREFIX ??= ""
>  MULTILIB_VARIANTS ??= ""
> +
> +# Used by to Hob to filter image files
> +IMAGE_TYPES_MAP = "btrfs:btrfs cpio.gz:cpio.gz cpio.lzma:cpio.lzma cpio.xz:cpio.xz cpio:cpio cramfs:cramfs elf:elf ext2.bz2:ext2.bz2 ext2.gz:ext2.gz ext2.lzma:ext2.lzma ext2:ext2 ext3.gz:ext3.gz ext3:ext3 jffs2:jffs2 live:hddimg,iso squashfs-lzma:squashfs-lzma squashfs:squashfs sum.jffs2:sum.jffs2 tar.bz2:tar.bz2 tar.gz:tar.gz tar.xz:tar.xz tar:tar ubi:ubi vmdk:vmdk"

I think this still overcomplicates things. Firstly, can't we assume the
names map 1:1 with some exceptions.

For the exceptions, lets just add something like:

IMAGE_EXTENSION_live = "hddimg iso"

to image_types.bbclass (or image-live.bbclass)

and then the UI can query that variable name and assume a 1:1 mapping if
its not present.

Cheers,

Richard




  reply	other threads:[~2012-08-25  7:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-24  9:15 [PATCH 0/3] hob2: remove hard-coded image types map Kang Kai
2012-08-24  9:15 ` [PATCH 1/3] hob2: remove the hard-coded images map Kang Kai
2012-08-24  9:15 ` [PATCH 2/3] hob2: remove class hcc Kang Kai
2012-08-24  9:15 ` [PATCH 3/3] bitbake.conf: add variable IMAGE_TYPES_MAP Kang Kai
2012-08-25  7:45   ` Richard Purdie [this message]
2012-08-27  2:06     ` Kang Kai

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=1345880741.14369.95.camel@ted \
    --to=richard.purdie@linuxfoundation.org \
    --cc=Zhenfeng.Zhao@windriver.com \
    --cc=bitbake-devel@lists.openembedded.org \
    --cc=kai.kang@windriver.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