From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 76675E00CD8; Mon, 14 Aug 2017 07:57:40 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [81.19.3.130 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from uho.ysoft.cz (uho.ysoft.cz [81.19.3.130]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 8DA29E00C89 for ; Mon, 14 Aug 2017 07:57:39 -0700 (PDT) Received: from APczBrno16.ysoft.local (apczbrno16.ysoft.local [10.0.0.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by uho.ysoft.cz (Postfix) with ESMTPS id A79E7A5F72; Mon, 14 Aug 2017 16:57:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ysoft.com; s=20160406-ysoft-com; t=1502722652; bh=HYs7lYcVhM077nR0iiaGiSunwWJz+5kiaUg990Lx5lw=; h=Subject:To:CC:References:From:Date:In-Reply-To:From; b=ilYSaKPbKZq2l35ajIPxr78pTTwRE82kYAUkhT7Jbsvvrsg30imbnC2LWdo/0I7iM 03ZRP7Aij3pf7xk827felFrpZurD5/NMHh+F5YI05ByZVwNN8Poid/+d2Syuul9Y5s csvGCl0cAb+onGvpLKKMbnn4HrobHouUjKnlZ1Zk= Received: from [10.1.8.241] (10.1.8.241) by APczBrno16.ysoft.local (10.0.0.90) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Mon, 14 Aug 2017 16:57:37 +0200 To: Khem Raj References: <1502455978267.42486@ysoft.com> From: =?UTF-8?B?TWljaGFsIFZva8OhxI0=?= Message-ID: <2cf7ff49-c214-6c1a-fd0e-f09983f4ad79@ysoft.com> Date: Mon, 14 Aug 2017 16:57:37 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: X-Originating-IP: [10.1.8.241] X-ClientProxiedBy: APczBrno16.ysoft.local (10.0.0.90) To APczBrno16.ysoft.local (10.0.0.90) X-GFI-SMTP-Submission: 1 X-GFI-SMTP-HelloDomain: [10.1.8.241] X-GFI-SMTP-RemoteIP: 10.1.8.241 Cc: "yocto@yoctoproject.org" Subject: Re: How to generate cpio.gz AND cpio.gz.u-boot image from single recipe? X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Aug 2017 14:57:40 -0000 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 14.8.2017 15:37, Khem Raj wrote: > Please open a bugzilla entry for it Done. https://bugzilla.yoctoproject.org/show_bug.cgi?id=3D11928 Thanks Raj. > > On Mon, Aug 14, 2017 at 6:11 AM Michal Vok=C3=A1=C4=8D > wrote: > > On 11.8.2017 18:31, Khem Raj wrote: > > On Fri, Aug 11, 2017 at 5:52 AM, Vok=C3=A1=C4=8D Michal > wrote: > >> Hi, > >> > >> I am in a process of upgrading our project from Jethro to Morty. > >> For a while I am trying to solve an issue with generating initram= fs images. > >> > >> We have an image recipe that says: > >> > >> IMAGE_FSTYPES =3D "tar.bz2 cpio.gz cpio.gz.u-boot" > >> inherit core-image > >> inherit image_types_uboot > >> > >> With the Jethro branch of the openembedded-core layer all thee de= fined image types are generated. > >> > >> After upgrade to Morty, the cpio.gz image is deleted somewhere in= the process of generating > >> the cpio.gz.u-boot image (which is probably the right behavior of= image_types_uboot.bbclass). > >> > >> I wonder why it worked before and how to make it work again, prop= erly. > > > > it is intentional. See > > https://github.com/01org/luv-yocto/commit/09a5cb0cca109395a4835e25= d483019ddd5e773c > > > > Thank you Raj, that explain why the gziped image is being removed. > > I still need to figure out, how to produce both image types from one = recipe. > Lets imagine I went through these steps. > > 1. I set up the recipe so that the tar.bz2 and cpio.gz images are= generated. > > IMAGE_FSTYPES =3D "tar.bz2 cpio.gz" > inherit core-image > > The tar is just for development debugging and the cpio.gz is pack= ed into > a FIT image that goes into production. > > 2. After some unspecified time a need arose to produce also > the cpio.gz.u-boot image that can be loaded manually in U-Boot du= ring development. > > I changed the recipe like this: > > IMAGE_FSTYPES =3D "tar.bz2 cpio.gz cpio.gz.u-boot" > inherit core-image > inherit image_types_uboot > > From my point of view, the image_types_uboot class is removing > the cpio.gz image that was generated by someone else. > In my situation it is not "a middle file" as the commit you reference= d says. > > I would understand that the cpio.gz is removed when it is not stated = in > the IMAGE_FSTYPES variable. > > From reading the IMAGE_FSTYPES variable documentation a user/develo= per can never > get the idea that some image types can not be generated simultaneousl= y. > IMHO a proper behavior would be to generate and preserve all supporte= d image > types stated in the IMAGE_FSTYPES variable. > > Any ideas how to achieve that? > ________________________________ CONFIDENTIALITY NOTICE This message is for the named person's use only. It may contain confidentia= l, proprietary or legally privileged information. If you receive this message in error, please immediately delete it and all = copies of it from your system, destroy any hard copies of it and notify us = by email to info@ysoft.com with a copy of this message. You must not, direc= tly or indirectly, use, disclose, distribute, print or copy any part of thi= s message if you are not the intended recipient. Y Soft and any of its subs= idiaries each reserves the right to monitor all e-mail communications throu= gh its networks. Y Soft is neither liable for the proper, complete transmission of the infor= mation contained in this communication nor any delay in its receipt. This e= mail was scanned for the presence of computer viruses. In the unfortunate e= vent of infection Y Soft does not accept liability. Any views expressed in this message are those of the individual sender, exc= ept where the message states otherwise and the sender is authorised to stat= e them.