Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id C7150E00858; Tue, 7 Apr 2015 02:12:19 -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=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [192.55.52.88 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 8367BE007A0 for ; Tue, 7 Apr 2015 02:12:17 -0700 (PDT) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 07 Apr 2015 02:12:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,536,1422950400"; d="scan'208";a="691333498" Received: from irsmsx101.ger.corp.intel.com ([163.33.3.153]) by fmsmga001.fm.intel.com with ESMTP; 07 Apr 2015 02:12:16 -0700 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.83]) by IRSMSX101.ger.corp.intel.com ([169.254.1.136]) with mapi id 14.03.0224.002; Tue, 7 Apr 2015 10:12:16 +0100 From: "Barros Pena, Belen" To: Christopher Larson Thread-Topic: [Toaster] [RFC] Identifying image recipes Thread-Index: AQHQbUYbG/BOX96bxEKhvnKDBLcy6p05tDsAgAeXMAA= Date: Tue, 7 Apr 2015 09:12:15 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.4.8.150116 x-originating-ip: [10.237.224.80] MIME-Version: 1.0 Cc: "toaster@yoctoproject.org" Subject: Re: [RFC] Identifying image recipes X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Apr 2015 09:12:19 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: Content-Transfer-Encoding: quoted-printable On 02/04/2015 16:17, "Christopher Larson" wrote: > >On Thu, Apr 2, 2015 at 6:08 AM, Barros Pena, Belen > wrote: > >A couple of weeks ago I ran an informal round of usability testing with >the new Toaster build functionality. One of the major issues that surfaced >was how difficult it is to identify the image recipes you can build, in >between the massive list of recipes coming from the OpenEmbedded metadata >index. It is important that the image recipes are easy to spot because >those are likely to be the first point of interest for Toaster users. > >The problem, as far as my understanding goes, is that there is no way in >the OpenEmbedded metadata to tell those apart from other recipes. We could >try and filter image recipes based on the image name (they often contain >the string '-image-'), but that would not be completely accurate. > >My question is: would it be possible to introduce a variable to identify >image recipes, I don't know, something like IMAGE_RECIPE =3D '1' or 'yes' >(just a wild example), that could be included in recipe files to tell >image recipes apart from standard software recipes, and that we could use >in Toaster to filter the recipe list? Is it worth proposing this to >OpenEmbedded, or there is no chance we'll get something like this through? > > > > > >I highly doubt anyone would be a fan of this, though admittedly it'd have >little impact on recipe writers, as you could shove it into the image >class rather than the recipes themselves. That said, I haven't read >toaster's code, yet, but if it actually parses > the recipes rather than just examining the files, you can check to see >if they inherit the image class. So there is a way to tell them apart :) Thanks! I'll check with the development team to see what can be done. Cheers Bel=E9n >--=20 >Christopher Larson >clarson at kergoth dot com >Founder - BitBake, OpenEmbedded, OpenZaurus >Maintainer - Tslib >Senior Software Engineer, Mentor Graphics > >