From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dan.rpsys.net (5751f4a1.skybroadband.com [87.81.244.161]) by mail.openembedded.org (Postfix) with ESMTP id 2201960232 for ; Mon, 5 Oct 2015 10:18:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id t95AIj3t010723; Mon, 5 Oct 2015 11:18:45 +0100 Received: from dan.rpsys.net ([127.0.0.1]) by localhost (dan.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id gwgUeJfh1AQe; Mon, 5 Oct 2015 11:18:45 +0100 (BST) Received: from [192.168.3.10] ([192.168.3.10]) (authenticated bits=0) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id t95AISp2010716 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 5 Oct 2015 11:18:41 +0100 Message-ID: <1444040307.5118.13.camel@linuxfoundation.org> From: Richard Purdie To: Mike Looijmans Date: Mon, 05 Oct 2015 11:18:27 +0100 In-Reply-To: <56124413.7020901@topic.nl> References: <56124413.7020901@topic.nl> X-Mailer: Evolution 3.12.11-0ubuntu3 Mime-Version: 1.0 Cc: OE-core Subject: Re: How to find out why my do_compile depends on $MACHINE X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list 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, 05 Oct 2015 10:18:49 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit On Mon, 2015-10-05 at 11:34 +0200, Mike Looijmans wrote: > I've been puzzling with this for many hours now, but I can't seem to figure > this out. > > I have a recipe that doesn't mention MACHINE anywhere, but still the > sstate-cache won't be re-used for other machines, because OE somehow insists > the package does depend on $MACHINE. > > The workaround I could find is to put something like this in the recipe: > > MACHINE[vardepvalue] = "any" > > (Similar stupid hacks like "vardepsexclude" will probably work too, but I'm > not interested in forcing this particular recipe, but I'm trying to figure out > what makes bitbake think it matters) > > Since it builds for an FPGA type, the package has > PACKAGE_ARCH="${FPGA_FAMILY}" set, and FGPA_FAMILY is set in local.conf. > > > When switching machines, "bitbake -S printdiff fpga-image-dyplo-test" reports > that MACHINE changed and that is what caused sstate not beign reused. But the > recipe does not use anything related to $MACHINE at all. > > Is there a way to make it tell me WHY it thinks that MACHINE is important to > the recipe? Very briefly (sorry travelling), find the task that you want to know more around and find the sigdata file in the stamps directory for it. Run "bitbake-diffsigs " and it will show you how the dependencies are calculated. You can compare two sigdata files using the same command, "bitbake-diffsigs ". Cheers, Richard