<br><br>On Wednesday, May 29, 2013, Mark Hatle &lt;<a href="mailto:mark.hatle@windriver.com">mark.hatle@windriver.com</a>&gt; wrote:<br>&gt; On 5/29/13 10:59 AM, Martin Jansa wrote:<br>&gt;&gt;<br>&gt;&gt; On Wed, May 29, 2013 at 10:09:44AM -0500, Mark Hatle wrote:<br>
&gt;&gt;&gt;<br>&gt;&gt;&gt; Add S(ource) and B(uild) directory information to the recipe pkgdata files.<br>&gt;&gt;&gt; This allows external tools to find the appropriate information, and be able<br>&gt;&gt;&gt; to easily access the corresponding sources and build directories.<br>
&gt;&gt;&gt;<br>&gt;&gt;&gt; Signed-off-by: Mark Hatle &lt;<a href="mailto:mark.hatle@windriver.com">mark.hatle@windriver.com</a>&gt;<br><br>Hi Mark<br><br>This won&#39;t work well when package is populated from sstate is there a way for it to work seamlessly across sstate it might be useful<br>
<br><br>&gt;&gt;&gt; ---<br>&gt;&gt;&gt;   meta/classes/package.bbclass | 2 ++<br>&gt;&gt;&gt;   1 file changed, 2 insertions(+)<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass<br>
&gt;&gt;&gt; index 02a1460..19b2b4c 100644<br>&gt;&gt;&gt; --- a/meta/classes/package.bbclass<br>&gt;&gt;&gt; +++ b/meta/classes/package.bbclass<br>&gt;&gt;&gt; @@ -1124,6 +1124,8 @@ python emit_pkgdata() {<br>&gt;&gt;&gt;<br>
&gt;&gt;&gt;       data_file = pkgdatadir + d.expand(&quot;/${PN}&quot; )<br>&gt;&gt;&gt;       f = open(data_file, &#39;w&#39;)<br>&gt;&gt;&gt; +    f.write(&quot;S: %s\n&quot; % d.expand(&quot;${S}&quot;))<br>&gt;&gt;&gt; +    f.write(&quot;B: %s\n&quot; % d.expand(&quot;${B}&quot;))<br>
&gt;&gt;&gt;       f.write(&quot;PACKAGES: %s\n&quot; % packages)<br>&gt;&gt;&gt;       f.close()<br>&gt;&gt;<br>&gt;&gt; how does this interact with sstate? does setscene task create<br>&gt;&gt; pkgdata with right paths?<br>
&gt;&gt;<br>&gt;<br>&gt; The pkgdata is always current to the current build/work directory.  When the sstate-cache runs, and the associated pkgdata is dumped to the disk the S and B for the current directory is written.  But when sstate-cache is used, there is no extracted source (or build) components so those directories remain unresolved.<br>
&gt;<br>&gt; It&#39;s up to the tooling that are using these files to check if the directory exists, if it does not -- then using bitbake -c patch &lt;recipe&gt; will create it. (even in the sstate-cache case.)<br>&gt;<br>
&gt; --Mark<br>&gt; _______________________________________________<br>&gt; Openembedded-core mailing list<br>&gt; <a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a><br>
&gt; <a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>&gt;