From: Kang Kai <Kai.Kang@windriver.com>
To: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: bitbake-devel@lists.openembedded.org, Zhenfeng.Zhao@windriver.com
Subject: Re: [PATCH 3/3] bitbake.conf: add variable IMAGE_TYPES_MAP
Date: Mon, 27 Aug 2012 10:06:52 +0800 [thread overview]
Message-ID: <503AD63C.8030703@windriver.com> (raw)
In-Reply-To: <1345880741.14369.95.camel@ted>
On 2012年08月25日 15:45, Richard Purdie wrote:
> 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"
Hi Richard,
> 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.
Thanks a lot.
I'll update it.
Regards,
Kai
>
> Cheers,
>
> Richard
>
>
prev parent reply other threads:[~2012-08-27 2:18 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
2012-08-27 2:06 ` Kang Kai [this message]
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=503AD63C.8030703@windriver.com \
--to=kai.kang@windriver.com \
--cc=Zhenfeng.Zhao@windriver.com \
--cc=bitbake-devel@lists.openembedded.org \
--cc=richard.purdie@linuxfoundation.org \
/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