Received: from mail-pb0-f47.google.com ([209.85.160.47]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1SIWdj-00084f-FK for bitbake-devel@lists.openembedded.org; Fri, 13 Apr 2012 04:53:35 +0200 Received: by pbcum15 with SMTP id um15so2734868pbc.6 for ; Thu, 12 Apr 2012 19:44:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:message-id:in-reply-to:references:subject :x-mailer:mime-version:content-type; bh=ekZH0tGr1LswNzFkrTZ+IokWgDuZKEEn95qarQcj2hw=; b=XoAheEww2Bn0O4239xw1t3F8x0z7t1RM+mkpwTI7c9V2bdwMvTImKL30Y1RX2ng3ER 4dS42ExY1jGYqOncX5MXOGBskkeWNzSdk9icLVDB0iuZbT/iS/VQBQZKJ03J9KYaNJir SBxfNUC45W+70Q1MOtDwnqq6QY6EurTUy4OdWSo2T7rvsnXRakMDZtshIUZQ3jsrFAG2 d5BNF1+pA8faphjACHwYWWDEDtBdehiII+tlLv9V3vics3A/x4BuOmwKNXOojjE+/7t1 pY39fJVvMeMIL4mEhqh5Hxb9oRP/MPi5H43JF3G5+sof81YhhUp79r9cZt5PHLuhWaUO VMxg== Received: by 10.68.222.165 with SMTP id qn5mr748771pbc.88.1334285053667; Thu, 12 Apr 2012 19:44:13 -0700 (PDT) Received: from frey.local (ip68-110-79-242.ph.ph.cox.net. [68.110.79.242]) by mx.google.com with ESMTPS id a9sm7346437pbr.73.2012.04.12.19.44.11 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 12 Apr 2012 19:44:12 -0700 (PDT) Sender: Chris Larson Date: Thu, 12 Apr 2012 19:44:09 -0700 From: Christopher Larson To: Robert Yang Message-ID: <54D86FE786BF497FAAE0A3B629E36154@gmail.com> In-Reply-To: <4F8778E1.3010403@windriver.com> References: <4F83EE3C.8040904@windriver.com> <4F843FC1.1080309@windriver.com> <4F8778E1.3010403@windriver.com> X-Mailer: sparrow 1.5 (build 1043.1) MIME-Version: 1.0 Cc: bitbake-devel@lists.openembedded.org Subject: Re: questions about bitbake world X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Apr 2012 02:53:35 -0000 Content-Type: multipart/alternative; boundary="4f8792f9_66334873_1816d" --4f8792f9_66334873_1816d Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Define EXCLUDE_FROM_WORLD = "1" in the recipe. -- Christopher Larson On Thursday, April 12, 2012 at 5:52 PM, Robert Yang wrote: > > Thanks, is there a way to skip the pkg if I don't want to build it > when bitbake world, please? > > // Robert > > On 04/10/2012 10:15 PM, Chris Larson wrote: > > On Tue, Apr 10, 2012 at 7:12 AM, Robert Yang wrote: > > > On 04/10/2012 09:58 PM, Chris Larson wrote: > > > > > > > > On Tue, Apr 10, 2012 at 1:24 AM, Robert Yang > > > > wrote: > > > > > > > > > > In the following code: > > > > > > > > > > def buildWorldTargetList(self): > > > > > ... > > > > > for f in self.status.possible_world: > > > > > terminal = True > > > > > pn = self.status.pkg_fn[f] > > > > > > > > > > for p in pn_provides[pn]: > > > > > if p.startswith('virtual/'): > > > > > parselog.debug(2, "World build skipping %s due to %s > > > > > provider starting with virtual/", f, p) > > > > > terminal = False > > > > > break > > > > > ... > > > > > > > > > > Does it mean that if a recipe contains: > > > > > > > > > > PROVIDES = "virtual/something" > > > > > > > > > > Then it would not be built until a pkg depends on it? Why we design it in > > > > > this > > > > > way, please? > > > > > > > > > > > > > > > > > > > > > The original intent with world was that when two recipes provided the > > > > same thing, we'd still only want to build one of them, not both, as > > > > building both can cause problems with stepping on one another in > > > > sysroot, etc. > > > > > > > > > > > > > > > > Thanks for your reply, but it seems that it builts none currently. > > > > Fair point, I think in certain cases we also only wanted to build > > things if they got pulled in via a dependency. For example, iirc > > native and cross both exclude themselves from world via a variable set > > in the classes. I don't recall if such was the case here, however. > > > > > --4f8792f9_66334873_1816d Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Define EXCLUDE=5F=46ROM=5FWORLD =3D =221=22 in the recipe.

-- 
Christopher L= arson

=20

On Thursday, April 12,= 2012 at 5:52 PM, Robert Yang wrote:


Thanks, is there = a way to skip the pkg if I don't want to build it
when bitbake = world, please=3F

// Robert

<= div>On 04/10/2012 10:15 PM, Chris Larson wrote:
On Tue, Apr 10, 2012 at 7:12 AM, Robert Yang<liezhi.yang=40windriver.com> wrote:



The original intent with world was that when two recipes provided the
same thing, we'd still only want to build one of them, not both, = as
building both can cause problems with stepping on one anothe= r in
sysroot, etc.


=20 =20 =20 =20 =20

--4f8792f9_66334873_1816d--