Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 72E7DE0172C for ; Tue, 12 Nov 2013 02:26:46 -0800 (PST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 12 Nov 2013 02:26:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.93,684,1378882800"; d="scan'208";a="426116848" Received: from irsmsx104.ger.corp.intel.com ([163.33.3.159]) by fmsmga001.fm.intel.com with ESMTP; 12 Nov 2013 02:26:44 -0800 Received: from irsmsx106.ger.corp.intel.com ([169.254.8.197]) by IRSMSX104.ger.corp.intel.com ([169.254.5.89]) with mapi id 14.03.0123.003; Tue, 12 Nov 2013 10:25:32 +0000 From: "Barros Pena, Belen" To: Richard Purdie Thread-Topic: [Toaster] [noexec] = "1" Thread-Index: AQHO3wcJJzfICCIPNkmOe0vVMtsnWJogVWcAgAEPioA= Date: Tue, 12 Nov 2013 10:25:31 +0000 Message-ID: In-Reply-To: <1384193612.22454.48.camel@ted> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.3.2.130206 x-originating-ip: [10.237.224.30] MIME-Version: 1.0 Cc: Paul Eggleton , "toaster@yoctoproject.org" Subject: Re: [noexec] = "1" 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, 12 Nov 2013 10:26:49 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-ID: <2A05A0E91B484A47838C6679E8D1A8D6@intel.com> Content-Transfer-Encoding: quoted-printable On 11/11/2013 18:13, "Richard Purdie" wrote: >On Mon, 2013-11-11 at 17:54 +0000, Barros Pena, Belen wrote: >> It's been brought to my attention that we need to find a way to present >> noexec tasks in Toaster (tasks with [noexec] =3D "1" set). I am trying t= o >> figure out a way to fit them in the Toaster task classification, but I >> think I am missing some context. >>=20 >> Can someone explain how that [noexec] flag came to be and why was it >> needed? A bit of history might help me come up with the right solution. > >When bitbake executes tasks, it forks off a new process which then sets >up the environment and executes the task. This has overhead. > >We had a number of cases where we had "placeholder" tasks which were >present for dependency reasons but were otherwise empty and had nothing >to execute. We therefore decided to mark them "noexec" i.e. they have no >executable content. > >Bitbake now knows that when it sees a noexec task, its there for >dependency reasons only and it can skip the execution part which is good >for performance. > >To see what I mean about dependency information, think about our >packaging process. We have points in the build where we need to say >"everything packaged" but don't care about specific package types. >We therefore have a noexec do_package_write task which depends on >do_package_write_{ipk,deb,rpm} depending on which are configured. > >There are also cases where we know the task will not do anything (e.g. >package tasks of -native recipes). Marking them noexec means we can skip >them faster. > >Does that help? It does help. A lot. It explains why they need to be shown (they are part of the dependency chain) and confirms that they should not be bundled with the executed tasks. Thanks!! > >Cheers, > >Richard >