From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay1.mentorg.com ([192.94.38.131]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1Q4Hl0-0006Db-49 for openembedded-core@lists.openembedded.org; Mon, 28 Mar 2011 21:05:42 +0200 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1Q4Hj6-0004Ud-SQ from Tom_Rini@mentor.com for openembedded-core@lists.openembedded.org; Mon, 28 Mar 2011 12:03:44 -0700 Received: from SVR-ORW-FEM-05.mgc.mentorg.com ([147.34.97.43]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 28 Mar 2011 12:02:21 -0700 Received: from [172.30.80.76] (147.34.91.1) by svr-orw-fem-05 (147.34.97.43) with Microsoft SMTP Server id 14.1.270.1; Mon, 28 Mar 2011 12:03:43 -0700 Message-ID: <4D90DB8A.3010609@mentor.com> Date: Mon, 28 Mar 2011 12:03:38 -0700 From: Tom Rini Organization: Mentor Graphics Corporation User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.14) Gecko/20110223 Lightning/1.0b2 Thunderbird/3.1.8 MIME-Version: 1.0 To: References: <20110327200802.GA23980@sakrah.homelinux.org> In-Reply-To: X-Enigmail-Version: 1.1.1 X-OriginalArrivalTime: 28 Mar 2011 19:02:21.0724 (UTC) FILETIME=[AAC855C0:01CBED7A] Subject: Re: DEPENDS tranlation with BBCLASSEXTEND X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Mar 2011 19:05:42 -0000 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit On 03/27/2011 04:03 PM, Chris Larson wrote: > On Sun, Mar 27, 2011 at 1:08 PM, Khem Raj wrote: >> I observed that if I have >> DEPENDS = "a b" in recipe.bb which has BBCLASSEXTEND = "native" >> then dependecies for recipe-native shows a-native b-native so far so >> good >> >> Now if I want to add a dependency which only is needed for native recipe >> I do >> >> DEPENDS_virtclass-native += "c-native" >> >> what this does is it will ignore a-native and b-native dependencies and >> only adds "c-native" to depends of native recipe >> >> DEPENDS_virtclass-native_append = " c-native" >> >> This does what I wanted i.e. have deps on a-native b-native c-native >> >> I think behavior of += or _append should be similar. Is my understanding >> correct ? > > They've never been the same. += is immediate, _append is delayed. If > a class, say, native.bbclass, defines the variable with ?=, and you > used += before the inherit, then it will have a value, and the ?= > won't assign. I assume native.bbclass does it this way today so you > can override the automatic behavior by defining the variable yourself, > but I'll let Richard speak to that decision. As Richard said, this is a good summary. And a shorter still summary (as Chris reminds me everytime I forget) is that since BBCLASSEXTENDS makes use of an override already (virtclass-native/cross/etc) you must keep that in mind when further modifying it as you get not what you expected but what you asked for. -- Tom Rini Mentor Graphics Corporation