Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 60E36E004AB for ; Thu, 6 Sep 2012 03:08:49 -0700 (PDT) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 06 Sep 2012 03:08:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.80,379,1344236400"; d="scan'208";a="197864436" Received: from unknown (HELO helios.localnet) ([10.252.121.173]) by orsmga002.jf.intel.com with ESMTP; 06 Sep 2012 03:08:48 -0700 From: Paul Eggleton To: Liu Date: Thu, 06 Sep 2012 11:08:47 +0100 Message-ID: <7527439.6PWcfp2XTu@helios> Organization: Intel Corporation User-Agent: KMail/4.9 (Linux/3.2.0-30-generic-pae; KDE/4.9.0; i686; ; ) In-Reply-To: References: MIME-Version: 1.0 Cc: yocto@yoctoproject.org Subject: Re: The dependency packages X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Sep 2012 10:08:49 -0000 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Thursday 23 August 2012 18:55:56 Liu wrote: > I'm watching the dependency graphs generated by "bitbake -g -u depexp > busybox", and I found the most dependncy packages where there are invoked. > But still several ones left I can not find where or which file to invoke > them. > 1) The first package is quilt and I know it is used to patch > something.Meanwhile I find that in the building process the quilt package > is always first built than other packages. Then how can I see that it is > indeed necessary to build the package "quilt".That is to say which file > defines to build quilt. The variable PATCHTOOL is set to "quilt" in meta/conf/bitbake.conf, and in meta/classes/patch.bbclass, we have this: PATCHDEPENDENCY = "${PATCHTOOL}-native:do_populate_sysroot" do_patch[depends] = "${PATCHDEPENDENCY}" This says that before any do_patch task executes, we must wait until the PATCHTOOL (by default, quilt) has been installed into the sysroot. This is because this tool is needed during do_patch. > 2) I used bitbake -e busybox | grep DEPENDS to > show the required packages for my build. I did not find the pseudo in the > DEPENDS,but I see something related in poky-denzil-7.0.1/scripts/bitbake . > Is there any other place defines to use some certain packages like this ? This is a case where a dependency relationship is set up at the task level as shown above, rather than between build-time or runtime targets. Unfortunately the depexp UI does not deal with task dependencies - perhaps it should, but I'm not sure how much slower that would make it. FYI you can see all of these dependency relationships including the task-based ones by looking at the dot files output by "bitbake -g busybox". They are usually too large to visualise using graphviz but they are plain text so you can just view/search them directly. Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre