<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 4, 2016 at 7:01 AM, Ed Bartosh <span dir="ltr">&lt;<a href="mailto:ed.bartosh@linux.intel.com" target="_blank">ed.bartosh@linux.intel.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, May 03, 2016 at 07:33:58PM +0000, Christopher Larson wrote:<br>
&gt; On Tue, May 3, 2016 at 7:31 PM, Christopher Larson &lt;<a href="mailto:clarson@kergoth.com">clarson@kergoth.com</a>&gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Mon, May 2, 2016 at 12:22 PM, Ed Bartosh &lt;<a href="mailto:ed.bartosh@linux.intel.com">ed.bartosh@linux.intel.com</a>&gt;<br>
&gt; &gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt;&gt; Generated standalone bmaptool script that is more convenient<br>
&gt; &gt;&gt; to use than native script. It can be run straight from<br>
&gt; &gt;&gt; its location ./tmp/deploy/tools/bmaptool. The script doesn&#39;t<br>
&gt; &gt;&gt; depend on anything except Python.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Signed-off-by: Ed Bartosh &lt;<a href="mailto:ed.bartosh@linux.intel.com">ed.bartosh@linux.intel.com</a>&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;<br>
&gt; &gt; You&#39;re right that this is very handy, but we hit a problem when building<br>
&gt; &gt; from shared state. This uses do_deploy to deploy bmaptool into<br>
&gt; &gt; DEPLOY_DIR_IMAGE, but IMAGE_DEPENDS only depends on do_populate_sysroot,<br>
&gt; &gt; not do_deploy, so an image build from sstate won&#39;t write this script out.<br>
&gt; &gt;<br>
&gt; &gt; I don&#39;t know the right way to fix this, but it&#39;s a problem. I just ran<br>
&gt; &gt; into it :)<br>
&gt; &gt;<br>
&gt;<br>
&gt; Also, the convention is to add do_deploy before do_build, not before<br>
&gt; do_package, otherwise do_deploy&#39;s checksum is included int he checksums of<br>
&gt; do_package and subsequent tasks, even though its output isn&#39;t used by any<br>
&gt; subsequent tasks.<br>
<br>
</span>I also found this a bit unusual to put the tool into deploy/tools.<br>
That&#39;s why I isolated this change. I think it requires some more<br>
testing, but the rest of patchset can be accepted without it.</blockquote></div><br>Yeah, putting it there does require some discussion in general. Personally, I&#39;m in favor of such a thing, because we don&#39;t want to put generated convenience tools in the sysroot, since we tell people explicitly to not use sysroot contents directly.<br><br clear="all"><div>Regarding getting it built for the image, I&#39;d suggest adding something like IMAGE_TASKDEPENDS to image_type.bbclass, which is basically like IMAGE_DEPENDS, but with the task included. I.e. IMAGE_TASKDEPENDS_bmap = &quot;bmap-tools-native:do_deploy&quot;. Then you wouldn&#39;t need the &#39;before do_package&#39;, and it&#39;d fix the from-sstate usage.</div>-- <br><div class="gmail_signature">Christopher Larson<br>clarson at kergoth dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics</div>
</div></div>