From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.chez-thomas.org (hermes.mlbassoc.com [64.234.241.98]) by mx1.pokylinux.org (Postfix) with ESMTP id 5C7974C80097 for ; Thu, 5 May 2011 11:31:20 -0500 (CDT) Received: by mail.chez-thomas.org (Postfix, from userid 999) id 19A561660251; Thu, 5 May 2011 10:31:19 -0600 (MDT) X-Spam-Checker-Version: SpamAssassin 3.3.2-r929478 (2010-03-31) on hermes.chez-thomas.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=4.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.2-r929478 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by mail.chez-thomas.org (Postfix) with ESMTP id AD823166019A; Thu, 5 May 2011 10:31:18 -0600 (MDT) Message-ID: <4DC2D0D6.2030709@mlbassoc.com> Date: Thu, 05 May 2011 10:31:18 -0600 From: Gary Thomas User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc13 Thunderbird/3.1.7 MIME-Version: 1.0 To: Poky Project References: <4DC16EFA.4070003@mlbassoc.com> In-Reply-To: <4DC16EFA.4070003@mlbassoc.com> Subject: Re: Debugging overrides X-BeenThere: poky@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Poky build system developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2011 16:31:23 -0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 05/04/2011 09:21 AM, Gary Thomas wrote: > I'm having trouble getting some overrides to work and would like > some ideas how to debug/troubleshoot. > > I have this [layered] setup > meta-targetA/ > packages/ > netbase/ > netbase_4.45.bbappend > netbase-4.45/ > targetA/ > interfaces > Similarly for targetB. > > My .bbappend file (identical in both trees) looks like this: > > ----------------------------------------------------------------------------------- > THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" > FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}-${PV}"], d)}:" > PACKAGE_ARCH = "${MACHINE_ARCH}" > ----------------------------------------------------------------------------------- > > I've traced through this with -DDD and on one target, I can see the > fetcher finding the files in my layer. On a different target, it only > finds the files in the main meta/recipes-core/netbase tree > > Any suggestions on where I look to understand what's going on? 'strace' is my friend :-) It turns out that I had some layering problems which caused the wrong packages/netbase tree to be searched. I ran strace on 'bitbake netbase' and was able to see the erroneous file/path searches which pointed out my problem. All is well now. -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------